JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
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.
Would like to assign a range of values one output value efficientlyAsked by tannerbotts80 on March 17, 2016 at 02:39 AM
im making a complex form and would like to know if it's possible to assign a range of values one output value?
for example, if respondent manually types their age (basically a range 1-100), how can I make it so any one who answered in the range of 20-30 gets converted into a single output? I need it so that all responses (21,22,23,24,25,26....) actually just convert to 25. It needs to be a text (I can't use a dropdown or anything else although I know it would be easier)
Any help would be rich appreciated, Thank you
That's possible. Here's how:
1. You have to use two number fields for that. One that accepts the user input and one for the conversion.
2. Then create a condition that outputs a number on the second field if the entered value is greater than 20 and less than 27. This means the target inputs are 21 to 26.
On the form builder, click Conditions > select Update/Calculate Field.
Then do the following condition: To add more "IF" statement, click on the + blue button.
Example: https://form.jotform.com/60762125609960 (enter a value between 21 and 26)
You can also clone this form so you can check the conditions and how it is setup.
Hope this helps!
Wow! That's exactly what I have been trying to do, thank you!
Great! Glad to see that the solution provided by our colleague works for you. Please do not hesitate to get in touch with us if you need any further assistance. We will be happy to help.
Thank you for using JotForm!!