Need to exclude specific characters from being entered

  • PeterMW
    Asked on March 17, 2019 at 3:03 PM

    I have created a form where I have a question called "Postal Code". 

    I have applied an input mask of "@#@ #@#". Good so far.


    However, Postal Codes can not include the letters D, F, I, O, Q or U.

    And the first position does not make use of the letters W or Z.  

    Is there a way I can prevent someone from entering these letters?

    Thanks,

    Peter

  • Victoria_K
    Replied on March 17, 2019 at 3:42 PM

    Hello Peter, 

    I can suggest to apply some conditional logic to check the input. 

    For example, you can add a text element to the form to indicate an error:

    Need to exclude specific characters from being entered Image 1 Screenshot 30

    Then, a condition can check the input this way:

    Need to exclude specific characters from being entered Image 2 Screenshot 41

    Condition could hide Submit button at same time, so a user could not submit a form with incorrect value.

    Hope this helps! But, please get back to us if you need further assistance. 

  • PeterMW
    Replied on March 17, 2019 at 4:12 PM

    That is absolutely awesome Victoria!

    Thanks so much for the quick response!

    Peter