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

  • zebra10
    Asked on October 12, 2018 at 3:42 PM

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

    Thanks

  • Mike_G JotForm Support
    Replied on October 12, 2018 at 4:32 PM

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

    1539375848t16 21 37 Screenshot 10

    1539375954t16 22 54 Screenshot 21

    The screenshot below shows how it works.

    1539376250t16 28 Screenshot 32

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

  • zebra10
    Replied on October 12, 2018 at 5: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


  • Victoria_K
    Replied on October 12, 2018 at 5: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 Screenshot 10

    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. 

  • zebra10
    Replied on October 13, 2018 at 5:16 AM

    Thanks Victoria.

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

    Regards,