How can I restrict form submission using condition?

  • Profile Image
    simplyserveamerica
    Asked on April 13, 2018 at 01:27 PM

    I am having trouble figuring out how to add certain restrictions to specific fields in one of my forms.

    I currently integrate my forms with a third-party program that will not function if the data provided contains a colon (:), or if the data received is too many characters. 

    Therefore, I want to set that field so that if the data that my clients enter contain either a colon or a response that is over a certain number of characters, it alerts them and they must change it before being able to proceed.

    How can this be done?

  • Profile Image
    TREVON
    Answered on April 13, 2018 at 03:02 PM

    I currently integrate my forms with a third-party program that will not function if the data provided contains a colon (:), or if the data received is too many characters. 

    Therefore, I want to set that field so that if the data that my clients enter contain either a colon or a response that is over a certain number of characters, it alerts them and they must change it before being able to proceed.

    If the field you want to apply the above limitations is for instance a Short Text Field, then you can easily set limits of number of characters allowed in the field by going to the options settings of the field as shown below.

    1523646096Screen Shot 2018-04-13 at 21.5

    If you want to ensure the field does not contain ":" characters then you can set us a condition that will disable form submission and display the error message.

    1523646112Screen Shot 2018-04-13 at 21.5

    Below is a clone of your form with the above changes implemented.

    https://www.jotform.com/81026274223953

    Kindly feel free to clone and use the form.