Creating input masking for email with leading zero

  • Profile Image
    red7eleven1
    Asked on July 17, 2017 at 03:13 AM

    Hi,

    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

  • Profile Image
    Nik_C
    Answered 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
    red7eleven1
    Answered on July 17, 2017 at 09:23 PM

    Perfect, thank you Nik!