Creating input masking for email with leading zero

  • red7eleven1
    Asked on July 17, 2017 at 3: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

    Jotform Thread 1200659 Screenshot
  • Nik_C
    Replied on July 17, 2017 at 4:51 AM

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

    Creating input masking for email with leading zero Image 1 Screenshot 40

    And here is the calculation I did:

    Creating input masking for email with leading zero Image 2 Screenshot 51

    That will work fine:

    Creating input masking for email with leading zero Image 3 Screenshot 62

    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!

  • red7eleven1
    Replied on July 17, 2017 at 9:23 PM

    Perfect, thank you Nik!