Conditional Logic: Using custom HTML code on fields does not seem to be recognized by conditions.

  • jenniferpham
    Asked on May 8, 2016 at 2:42 AM

    1.  Stroller price not producing correct price.

    If you click Stroller Type: SINGLE Stroller, it is supposed to give the "Stroller Price" field the Single Stroller Price Table. However, it is showing price from Double Stroller.

    If you click the dates so it shows just 1 day (May 7, 2016 1am to May 7, 2016 1am), and then click you want to rent Stroller and stroller type Single Stroller, the price should be $20 (single stroller price) instead of $25 (double stroller price).  I've checked and rechecked conditions over again but cannot figure it out.

    Conditional Logic: Using custom HTML code on fields does not seem to be recognized by conditions Screenshot 150

     

    Conditional Logic: Using custom HTML code on fields does not seem to be recognized by conditions Screenshot 161

     

    Conditional Logic: Using custom HTML code on fields does not seem to be recognized by conditions Screenshot 172

     

    Conditional Logic: Using custom HTML code on fields does not seem to be recognized by conditions Screenshot 183Conditional Logic: Using custom HTML code on fields does not seem to be recognized by conditions Screenshot 194Conditional Logic: Using custom HTML code on fields does not seem to be recognized by conditions Screenshot 205

     

    2.  I tried to make promo codes show a discount using conditions. 

    If promo code is "rental10percent", it will calculate 10% off the price so far and insert that number into "Discount" field.  I got "rental10percent" to work, but my other promo codes (military5, senior5, rental50percentoff), which I made exactly the same way do not insert a number into the Discount field for some reason.  I've checked and rechecked conditions over again.

    Conditional Logic: Using custom HTML code on fields does not seem to be recognized by conditions Screenshot 216Conditional Logic: Using custom HTML code on fields does not seem to be recognized by conditions Screenshot 227

    Conditional Logic: Using custom HTML code on fields does not seem to be recognized by conditions Screenshot 238

     

    Conditional Logic: Using custom HTML code on fields does not seem to be recognized by conditions Screenshot 249

     

    Conditional Logic: Using custom HTML code on fields does not seem to be recognized by conditions Screenshot 2510

     

    Conditional Logic: Using custom HTML code on fields does not seem to be recognized by conditions Screenshot 2611

    3. Discount field does not show dollar sign and 2 places after the decimal even though I put that on the calculation options.

     

    Conditional Logic: Using custom HTML code on fields does not seem to be recognized by conditions Screenshot 2712

    Conditional Logic: Using custom HTML code on fields does not seem to be recognized by conditions Screenshot 2813

    Jotform Thread 834749 Screenshot
  • Kevin Support Team Lead
    Replied on May 8, 2016 at 4:33 AM

    1.  Stroller price not producing correct price.

    I checked your form and noticed that this is happening only when you are using the HTML code to show the image, if this HTML code is removed then the condition will work as intended. 

    Conditional Logic: Using custom HTML code on fields does not seem to be recognized by conditions Screenshot 30

    Conditional Logic: Using custom HTML code on fields does not seem to be recognized by conditions Screenshot 41

    I think this is because the value is different, for example, when the value is taken to evaluate the condition it has the HTML code that you have added as plain text, but when it is on your form it is shown as HTML code, showing he image instead of the plain HTML text. 

    I will report this issue to our second level, one of our developers will take a look into this and you will be notified when this is resolved. 

    Regarding to your other questions, they have been moved to these threads respectively: 

    https://www.jotform.com/answers/834760 

    https://www.jotform.com/answers/834761

    We will assist you there as soon as possible. 

     

  • jenniferpham
    Replied on May 10, 2016 at 4:25 AM

    Thank you! I appreciate that!

  • jenniferpham
    Replied on May 10, 2016 at 4:34 PM

    I removed the html code but it still doesn't work.  When I click Stroller Type: Single-Stroller, it still doesn't show $20 on Stroller Price.  I even tried duplicating the working dropdown menu (Double Stroller Price Table) and renaming it to Triple Stroller Price Table, and duplicated the conditions that work with the double stroller except changing fields to Tripe Stroller Price Table, but that still doesn't reflect in Stroller Price Table.  I just don't know what to do!

  • Kevin Support Team Lead
    Replied on May 10, 2016 at 5:44 PM

    I have checked your form and noticed that you are inserting the dollar sign in calculations ($) this is why the total was not being inserted into the total calculated amount, I have removed it and started to work, but I have also set this sign to be added as text, try doing the same, open the condition as if you were editing it and click on the dollar sign to make it text, it should look like the image below:

    Conditional Logic: Using custom HTML code on fields does not seem to be recognized by conditions Screenshot 20  

    Other option would be, removing and adding the sign again, if this does not work you will need to remove it from the calculation since this seems to be causing the issue, here is also a form where I removed and added the sign and it worked: https://form.jotform.com/61306635496965 

     

  • jenniferpham
    Replied on May 10, 2016 at 7:21 PM

    Worked perfectly. Thanks! Your support is the best!

  • Kevin Support Team Lead
    Replied on May 10, 2016 at 9:04 PM

    Your welcome, glad to know it worked as you needed.

    We will provide you with news as soon as we get some regarding to use HTML code in the options of radio buttons or other fields, and if you need more help do not hesitate to contact us as well, we will be glad to help you.