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.
What is the numerical Jotform ID & Index used in source code to conditionally show an image?Asked by bdoodle on March 29, 2015 at 04:19 PM
Please see the snippet of code from one of my forms below. It includes the source code that causes a certain image (an aqua panel) to show in the sail if the user has selected "aqua blue" in the Panel 1 (a & b) drop down box. It must have been generated when I added the conditional statement to show the Buccaneer_Spin_1_Aqua image. A numeric ID (shown in the red oval) and an Index value to its right appear in the code, but I don't know their purpose is or what they refer to. Please advise. Also, are they necessary? I want to know because I'm considering generating my own source code to conditionally show each sail panel image rather than adding each condition thru Form Builder one at a time. (I have hundreds to do.)
My form is: http://www.jotform.com//?formID=50756726233154
The ID you see in the conditions code is the condition ID generated by the system. It is only used on the condition builder, you can write whatever unique number there if you are creating the conditions manually. The index number is probably used for sorting conditions on how they appear in the conditions wizard. Just increment this numbers when you write your conditions. They are all necessary, you have to follow the conditions format otherwise it will cause errors and the entire conditions will stop from working.
Let us know should you have further questions.
Thank you for the information. Based on what you've said, I cannot create my own conditions because I cannot generate the condition ID that your system relies on. No problem. I'll go another way.
On behalf of my colleague, you are welcome.