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

  • Profile Image
    Electra 
    Asked 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. 

  • Profile Image
    BJoanna
    Answered 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.