-
howtoreachkatieAsked on March 24, 2021 at 6:25 PM
Hi,
We want to ask four questions of the people who receive this form, but only want them to be able to write their answer to ONE of the questions. Is there a way to make it impossible to answer more than one?
Thanks!
Katie Davis
-
Ege JotForm DeveloperReplied on March 25, 2021 at 2:50 AM
Hello Katie,
You can drag the "Single Choice" element to your form and we will type the questions there.
When the user selects an option, we will store this in another field. Drag another Short Text element into your form. Then, we are going to click on the "Properties" button and make this field hidden.
Click on the Advanced section on the top of the Properties tab and we will scroll down to see "Field Details". Click on that section and you will see the "Unique Name" field.
Now, we are going to drag another Short Text element. We will use the Unique Name mentioned earlier as this field's question. Let's have the question area as "Answer to {selectedQuestion}". [Please note that this Unique Name may be something different in your own form.]
Now the final part is having the conditions:
Click on the "Settings" option and choose the Conditions. From here, click on the "Add a new condition" button.
We will choose "Update / Calculate Field" as our new condition. The first condition will be "If the single selection field is filled, copy the field into our hidden input box". Here is how we do that:
Then, we will click on the Save button and make another condition. "If the single choice element is filled, show the answer field where the user answers the selected question":
Click on the Save button and we will be done.
Here is how the users will see the questions:Here is the demo form: https://form.jotform.com/210831592962055
I hope this helps! If you have any questions, we will be happy to hear from you.
-
howtoreachkatieReplied on March 25, 2021 at 9:30 AM
Hi egehatirnaz...
You are amazing and I thank you so much for your detailed answer. I may be taking your instruction too literally, but once I got to the conditions, nothing matched what you instructed. Would you be able to take a look, please? I don't have a choice in your instruction of: "The first condition will be "If the single selection field is filled, copy the field into our hidden input box".
Maybe I inserted the question choices wrong? Should I have made the 4 options just a choice of which they will want to answer ... so they click Option 3, say, and then each question is an individual short text box and they would then answer number 3?
I wish I could've done this on my own, but I thank you for your guidance!
Katie
-
Ege JotForm DeveloperReplied on March 25, 2021 at 9:44 AM
Hello Katie,
I see that you have added the Single Choice options. In the next step, we will choose "Update / Calculate Field" in Conditions and set it like this:
Then, we will add another condition to "Show / Hide Field" and set it like this:
We use curly brackets to obtain field values. As our hidden field's Unique Name is "MaNishtana", our visible question should be something like this:
When somebody fills out your form, this is how it looks like in the end:
If you have any questions, please do not hesitate to contact us. We will be happy to help you.