- AA_CAsked 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.
- JotForm SupportdavidAnswered on March 04, 2015 at 12:15 PM
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.
- AA_CAnswered on March 04, 2015 at 01:57 PM
Could it be done in a matrix?
- JotForm SupportdavidAnswered on March 04, 2015 at 02:08 PM
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.
- AA_CAnswered on March 04, 2015 at 05:46 PM
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.
- JotForm SupportdavidAnswered on March 04, 2015 at 06:10 PM
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.
- AA_CAnswered on March 05, 2015 at 08:26 PM
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.
- JotForm SupportEltonCrisAnswered on March 05, 2015 at 10:19 PM
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