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

    How can I set an imput mask to capitalize the first letter while keeping all other lettere lower case?

    Asked by CPNet on January 14, 2017 at 08:31 PM

    I want all name entries to have the format "John Doe". The first letter in each name to be capitalized while the remaining letters remain lower case.

    Form entry is: <First Name> John,  <Last Name> Doe

    Example   John Doe

    I do not want the form to accept either:

    john doe

    or

    JOHN DOE

     

    Can anyone suggest how to do this?

     

    Page URL:
    http://pilecom.net/imok_osr

  • Profile Image
    JotForm Support

    Answered by Jim_R on January 15, 2017 at 10:22 AM

    You may use CSS to achieve this BUT this would only take effect on the front-end perspective of the form. The text will still be sent to you in the same manner the visitor typed it in.

    e.g. if someone typed in john doe, they will see it as John Doe but you will get it as john doe still

    Another thing to note is that, this won't work if the user is typing in uppercase.

    e.g. JOHN DOE would still appear as JOHN DOE

    I'm seeing this was the form https://www.jotform.com/70076967119868 embedded on the page you included on your post.

    Here are the CSS Codes you need for the first and last name fields to get that effect:

    #first_4, #last_4 {

       text-transform: capitalize;

    }

    Here's where/how to inject the CSS Codes:

    Complete guide: How-to-Inject-Custom-CSS-Codes 

    RESULT:

    If you wish for this to be applied on your Email Notifications instead, please have a look at the detailed guide below.

    Complete guide: Capitalizing-the-First-Letter-of-Every-Field-Value-on-Email