What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    Creating input masking for email with leading zero

    Asked by red7eleven1 on July 17, 2017 at 03:13 AM


    I want to be able to automatically generate an email upon my users keying in a 4-digit number (our store number). The store numbers come with 4-digits, including leading zeros (e.g 0123)

    This is an example of a store email, if store number is 0123, the email would be 0123@store.7eleven.com.my

    I want the user to key in 0123, then another read-only output text field generates 0123@store.7eleven.com.my

    Currently, I am using conditional formatting to combine two fields; the store number field (e.g 0123) together with a hidden field of just @store.7eleven.com.my 

    Because of the leading zero, I had to put a input mask, I could not get the masking for the output text field to put the '@' from emails as the @ is the mask for letters and it confuses the configuration.

    Please advise

    Page URL:

  • Profile Image
    JotForm Support

    Answered by Nik_C on July 17, 2017 at 04:51 AM

     Maybe it would work better if you would use Form calculations widget:

    And here is the calculation I did:

    That will work fine:

    If you need further you could copy the value from that field to another one.

    Here is my test form: https://form.jotformpro.com/71971974859983

    Please check and let us know how it worked.

    Thank you!

  • Profile Image

    Answered by red7eleven1 on July 17, 2017 at 09:23 PM

    Perfect, thank you Nik!