Adding a leading zero

  • Profile Image
    StevenHoste
    Asked on February 03, 2016 at 09:25 AM

    In my form, I need people to fill a number of maximum 3 digits.

    If they only fill 1 or 2 digits, I want to add 2 or 1 leading zero(s). Is that possible?

  • Profile Image
    Ben
    Answered on February 03, 2016 at 12:09 PM

    This can either be done through mask - by forcing the input to be a 3 digit number and using sub label to explain that leading zeros should be added, or to use the conditions to add the zeros to the value entered in some other field.

    You can see this in a quick demo here: https://form.jotform.com/60334978432965

    You can see how both are done by cloning the form to your own account following steps here: How to Clone an Existing Form from a URL or by asking more here and we would be happy to explain each.