How would I apply a mask to the following possible inputs.

  • Profile Image
    kvdspuy
    Asked on June 07, 2018 at 07:39 AM

    How would I apply a mask to the following possible inputs. The REQUIRED and FIXED portion is ADUWC\:

    ADUWC\amaurtin-cairncross

    ADUWC\jsloth-nielsen

    ADUWC\mdavies-coleman

    ADUWC\tabrahams-abbas

    None of the available masks provide for a mixture of Alphanumerics as well as Special Characters in different positions.



    This is a re-post of a comment on Getting Started with the Basics of Input Masking

  • Profile Image
    BJoanna
    Answered on June 07, 2018 at 10:15 AM

    Unfortunately, it seems that it is not possible to set that specific format using Input Masking. 

    In your case, it is not possible because a special character '-' will not always be in the same position. 

    It would be possible only if you omit the character '-'. Then you could set Input Mask like this.

    1528379951input mask.JPG

    As a possible workaround, you can use conditional logic to force your users to use that format. With conditional logic, you can show a custom message if the format is not correct and hide the submit button.

    15283806141.JPG

    How to Show or Hide Fields Base on User's Answer

    Here is a demo form: https://form.jotform.com/81574508564969