What is the numerical Jotform ID & Index used in source code to conditionally show an image?

  • bdoodle
    Asked on March 29, 2015 at 4: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

    What is the numerical Jotform ID & Index used in source code to conditionally show an image?  Image 1 Screenshot 20

  • Elton Support Team Lead
    Replied on March 29, 2015 at 7:17 PM

    Hi,

    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.

    Best Regards!

  • bdoodle
    Replied on March 30, 2015 at 10:22 AM

    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.

  • Ashwin JotForm Support
    Replied on March 30, 2015 at 12:00 PM

    Hello bdoodle,

    On behalf of my colleague, you are welcome.

    Yes that is correct, you cannot generate the condition ID as it is auto generated but if you download your form's source code, you can write your own JavaScript condition. 

    Thank you!