Skip to content

Tag: forms

Using HTML and Javascript to make a concrete supplies calculator – Takes a value of both ____m3 and a select option (mpa) to give a total price

This is my first time asking a question on Stack Overflow so apologies if I get something wrong. I am currently building a web calculator for a concrete company. Here are the details of the inputs: There is a form with the following inputs: Input 1: Cubic Meters (m3) Input 2: Strength Input 1 takes a value be…

Javascript: How to compare against substring in PDF forms?

I am trying to use some Javascript in a PDF form. As an example, let’s say I have two fields: let’s call them TextField1 and TextField2. These fields can be used independently, but when TextField1 has a certain value, I’d like TextField2 prefilled. This works fine (triggered onBlur, not that…

JS Onchange display value before processing

I have a form with a select input element. After the user selects an option, I check that option chosen. If it is bigger than I expected, I bring up an alert box asking the user if they’re sure they selected the right option. This is just a warning, so I don’t reset the value or prevent the user f…