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

    Can I remove the last name field from my online form? If so, how?

    Asked by Electra  on May 10, 2016 at 10:18 AM

    We need to give volunteers some way to be private or even anonymous so we don't want to ask them for their last name or last name initial if possible. Please advise. 

    online form name last name how
  • Profile Image
    JotForm Support

    Answered by BJoanna on May 10, 2016 at 12:04 PM

    If I understood you correctly, you want to hide last name field of Full Name field. Is that correct? This is possible to achieve with CSS. You would need to get ID of your last name field and add CSS code for hiding last name field. If you can provide us ID of your form we can provide you CSS code to hide last name field.

    However there is simpler solution. Instead of Full name field you can use regular text box field and set label of that field to e.g. Name.

    Here is my demo form with both solutions: https://form.jotform.com/61304297751961 

    First Name field is regular text box field and second name field IS Full Name field, where I added CSS code to hide last name field. 

    #last_3 {

        visibility : hidden;

    }

    #sublabel_last {

        visibility : hidden;

    }

    Inside of this guide you can find how to find ID and names od the form fields and how to Inject Custom CSS codes to your form:

    https://www.jotform.com/help/146-How-to-find-Field-IDs-Names 

    https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes 

    Hope this will help. Let us know if you need further assistance.