What masking scheme can I use for a text field that must start with "--

  • Profile Image
    zebra10
    Asked on October 12, 2018 at 03:42 PM

    What masking scheme can I use for a text field that must start with "--" or "rue" ?

    Thanks



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

  • Profile Image
    Mike_G
    Answered on October 12, 2018 at 04:32 PM

    You can enter "--" or "rue" at the beginning of the input mask that you will set.

    1539375848t16_21_37.png

    1539375954t16_22_54.png

    The screenshot below shows how it works.

    1539376250t16_28.gif

    I hope this helps. If you have other questions or concerns, please feel free to let us know.

  • Profile Image
    zebra10
    Answered on October 12, 2018 at 05:35 PM

    Thank you Mike but I suppose I did not explain well.

    1-Entries in one unique field can start with either "--" or "rue " (anything else not accepted)

    2-Entries are NOT of fixed length

    exemples:

    --                                   is ok

    --12rtp                           is ok

    rue Helene Boucher                   is ok

    rue Blanky                                is ok


    Hope this helps

    Regards


  • Profile Image
    Victoria_K
    Answered on October 12, 2018 at 05:59 PM

    Hello,

    I'm afraid this is not possible to apply several input masks to single field. You could add a conditional statement to check if input to the field starts with some value and to show your custom warning based on that:

    153938149100-55-37.png

    Test form: https://form.jotform.com/82847300614959 

    Related guide: How-to-Show-or-Hide-Fields-Base-on-User-s-Answer

    We will gladly assist if you need any further help. 

  • Profile Image
    zebra10
    Answered on October 13, 2018 at 05:16 AM

    Thanks Victoria.

    The fixed length is a real drawback in many masks I would like to implement.

    Regards,