- mtlscouts_committeeAsked on November 25, 2012 at 04:01 PM
I have a radio button field (call it F2) with possible values Yes and No, that is only shown when the previous (first) field (F1) is set to Yes. When the field (F2) is shown, I do not want a default value shown. The user must pick one of the values. However, if the field (F2) is not shown, I want it to get a value of No recorded in the submission.
I can't seem to find a way of doing this.Page URL:
- fxrAnswered on November 25, 2012 at 04:25 PM
just to summarise what you hope to acheieve:
1. so, you are pointing your form users back at the same form, after a submission?
2. If a particular option is chosen on the form, you want to a certain field (the 2nd time round)?
Can you tell us exactly which field this condition needs to be set up on?
- mtlscouts_committeeAnswered on November 25, 2012 at 04:58 PM
Not quite. Has nothing to do with second time round. Much simpler situation...
First field is a yes/no field (will you attend?). Second field is 'will you bring a guest?' (Yes/No). The second field is only shown (using a condition) when the first field is set to Yes by the user. When the user sees the 'will you bring a guest?' field, I want no default value to appear (which is how I have it set up). However, when the field is hidden by the condition, I would like to have a value of No recorded as part of the submission.
Is there any way to do this?
- JotForm SupportjonathanAnswered on November 25, 2012 at 05:05 PM
How about if you do this... (click the image for visual guide)
Make sure that the default selected value for each one is Yes and NO. Then, use Condition Logic to SHOW/HIDE the correct Radio option field base on the previous choice/answer.
Try creating this condition and test.
Please inform us if this is not viable for you.
- mtlscouts_committeeAnswered on November 25, 2012 at 08:00 PM
Thanks, but that's not exactly what I am looking for. If the user answers No on the first question, I don't want them to see anything. Even if I hide the extra/second set of the second question, I will end up with 2 separate columns in the submission results for basically the same thing. One would always be no (when the first column was set to no), and the other would be whatever the user selected. I would then have to combine the values in the 2 columns. I was just trying to avoid having to play with the data in excel afterwards.
Basically, it looks like I need conditional logic that allows me to set a value on a column based on a condition. Or in this case, set a value on a column when it is hidden.
- JotForm SupportabajanAnswered on November 25, 2012 at 11:17 PM
Oops! Now that I've tested it further, it's not working as expected. This will need more thought.
- JotForm SupportabajanAnswered on November 26, 2012 at 11:21 AM
There's a solution but it requires embedding a copy of the form's full source into a web page and including a script on the said page. To see it in action, clone this form, copy its source from the Embed Form Wizard (please see this guide) and paste it into the source of a web page of your choice. Just before the closing body tag of the page's source, paste this script and save the page. (The script need not be placed right before the closing body tag but it must follow form's source and not precede it.)
After completing the above procedure, do some test submissions on the form and view its submission records.
Besides this matter, the form exhibits some styling issues in Chrome and possibly other browsers: The selections for the Can we show your name in the list of attendees field shift to a new line. A similar problem occurs with the Left the group in: field. I'll have to look into that later and post the solution in a separate thread.
Do let us know if you're satisfied with how the submission records of your tests appear.
- guest_23276602484051Answered on November 26, 2012 at 01:08 PM
Thanks for following up. Unfortunately I cannot embed the form's source anywhere. It must remain only on Jotform.
For now, I'll just manage the results manually in excel.