What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
One field with two numeric inputs / calculate and display resultAsked by AA_C on March 04, 2015 at 11:38 AM
I have 6 fields on the form for ring dimensions.
Is it possible to have each field have two inputs and show the result value.
eg, Ring 1 Dim W.[ 100 ] x L.[ 90 ] = [ 9000 ] Sq. Ft (All this in one field)
Also if the value is below allowed size a warning appears. Ring size is too small
I know this can be done by creating 3 separate fields for each of the 6 rings.
This would add some complexity as I now only display the number of Ring Dim fields based on the number of rings at the site. I would have to add a lot more conditions. I am trying to use the "KISS" principal.
Numeric and style size site thanks
Unfortunately the method you described may be the only solution. To perform calculations, each input does indeed need its own field. It is not currently possible to perform calculations on multiple entries in the the same field.
It should only take one additional condition per ring. Though there may be quite a few rules in the condition for a few of the rings:
They would be very similar to the original conditions for showing the rings, just with an extra couple fields shown for each.
If you run into any problems while setting this up, let us know and we will be happy to help.
Could it be done in a matrix?
A matrix was my initial thought, however, no further calculation can be performed on them. It would also not be possible to only show the specific amount of rows for inputting the dimensions. The matrix would load and then your users would need to add the proper amount of rows. So if they selected 4 rings, they would also need to add 3 additional rows to the matrix manually. This in addition to the calculation issues is was made me not suggest using one.
Thank you for the feed back.
I was able to combine the input fields after embedding the code to file at website. Still a work in progress but I should get figured out.
If you like I can provide a link... when done.
No problem at all. We are here to help. I definitely wouldn't mind seeing the final product. kind of curious to see how the calculations work out. If you need help with anything else in the mean time, just let us know.
Hi David or other,
Have a look at this link to see what I am doing. Although all 6 rings can be selected I have only ring 1 done in the format I want. This is on a form on its own right now as it was easier to work with. I have another idea in mind also.
If you can offer some advise please do so.
I think that's the prettiest workaround I've seen so far. Nicely done! :)
I have tested it and it works as expected.
In addition to my colleague, you can also group fields so you can show/hide them all at once using form collapse. Although I don't think you need this anymore since you got everything working but just in case, here's a guide: https://www.jotform.com/help/297-Show-or-Hide-multiple-fields-at-once-using-form-collapse-tool