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.
Enabling conditions on my formAsked by cwphoto on December 04, 2013 at 07:37 PM
Hi! I am loving your form builder. It has everything I think I could need. Thank you for allowing such a professional-looking free option, as at this time my expected number of form submissions will be pretty low.
I set up multiple conditions based on the client's initial selection. When I pull up the preview, several of them are not following the conditions I set (i.e. showing when they are supposed to be hidden, or vice versa). When I embedded it on my website, none of the conditions are working. For example, if a client selects a "Newborn Session," I still get questions for the "Senior" and "Family" sessions. What am I doing wrong?
For reference, the form is embedded at http://christinewrightphotography.com/new-client-questionnaire/
Update: I found an older question that said to get rid of all of my "hide" options and only use the "show." I tried that, and it still isn't working.
Form Builder conditions conditional logic show conditions
It's always nice to know when clients are enjoying our product :)
Now, to the issue at hand. First of all, I need to know something. This may sound like a silly question but did you intend to allow users to make more than one choice in the What kind of session are you requesting? field? If not, it should be replaced with a radio button field. (Here's the difference between check boxes and radio buttons.)
I think it would be prudent for us to wait on your reply before proceeding to fix the conditions.
Incidentally, the most likely reason why none of the conditions are working in the embedded form is conflicts between the form's scripts and those of the web page. jQuery and Prototype both use the $ symbol and as such, they don't normally "get along with each other". When this happens, we usually recommend using the iFrame embed method instead of the default:
Anyway, we'll await your answer about the "What kind of session are you requesting?" field.
Thank you for your quick response. As to the radio buttons, I do feel silly. That fixed the issue of the conditions not showing at all. I tried iFrame, and that didn't make a difference as to which conditions showed. The first selection "Newborn" shows all of my programmed conditions, but all of the others are missing most of what I set. Any other suggestions?
I think the problem may be that the logic of the conditions is setup in reverse. For example, instead of asking yourself
"Which fields should be shown when What kind of session are you requesting? = Newborn?"
the question should be
"Under what conditions should the Due Date field be shown?"
According to your current setup, those conditions would be as follows:
When (if) What kind of session are you requesting? = Newborn
When (if) What kind of session are you requesting? = Maternity
So, the setup for that condition would be
I'll see how best I can fix the conditions and get back to you.
Okay, I think I've got the conditions all sorted out. However, while re-configuring them I came across a typo or two and the following condition that appears to be nonsensical:
Of course, you may have had a good reason for placing it there but it just seemed to me that it would be better if that field were to be shown when another choice was selected in the "What kind of session are you requesting?" field.
One typo I spotted was "How many outfit changes to you have? ..." There may have been another one but I'm not sure.
If you need further assistance with your forms, please let us know.
You are brilliant!!! Everything works exactly like I wanted it to. Thank you so much!
(And thank you for catching my typos)