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.

  • Profile Image

    How to validate due amount to end only in 0 or 5?

    Asked by RHemery on August 24, 2016 at 08:23 AM

    Hi there

    On my form: https://form.jotform.com/62283840016956 we are processing payments via PayPal.

    Is there a way to validate the vouchers £ field so it will only go through to the gateway if the sum ends in a 0 or 5?



    Page URL:

  • Profile Image
    JotForm Support

    Answered by Kevin_G on August 24, 2016 at 09:43 AM

    You may try with this, adding a Form Calculation widget to your form and then adding this formula:

    Then when a number is entered it will give a result, you should validate that this number is not a decimal, if the quantity ends in 0 or 5 then the result of the calculation should be a non-decimal value, this will be achieved with conditions, this is the condition that you should use:

    You should use the same condition and instead of showing a text like I'm doing you may show the payment field.

    Here is my cloned form of your where I did apply this: https://www.jotformpro.com/form/62363430552955 

    Hope this helps. 

  • Profile Image

    Answered by RHemery on August 24, 2016 at 09:59 AM

    This works OK but what I need is it to validate the 'I want...' field not the 'Number' field you've created... is this possible?

    I guess if it's not the 'Number' field could act as a confirmation field, a bit like when you have to input your email address twice when registering for something.

    I guess it's also possible to hide the 'Calculation' field?


  • Profile Image
    JotForm Support

    Answered by Kevin_G on August 24, 2016 at 10:42 AM

    Yes, it can be the payment field, I used the other field only as a test, but I have removed it and I'm using the payment field and it works the same: 

    You can also check my form again and you should notice the change: https://www.jotformpro.com/form/62363430552955