How can I require only first name (Not Last name) in the name Element?

  • Clintluna
    Asked on July 17, 2018 at 3:38 AM

    How can I require only first name (Not Last name) in the name Element? Some people (though very few) only have a first name. Want to require a first name, but not the last name in the name element.

  • Elton Support Team Lead
    Replied on July 17, 2018 at 4:17 AM

    That can't be achieved with the Full Name field.

    The solution is to use the Short Text Entry to have separate text boxes. Add two text boxes for the First and Last Name then require the field you want.

    Example:

    How can I require only first name (Not Last name) in the name Element? Image 1 Screenshot 20

  • Clintluna
    Replied on July 17, 2018 at 5:32 AM

    Okay, how can I change the spacing in between ONLY these name text boxes?  Now there's much extra space between them I want to get rid of.


    Also on a side note, much of my text appears as one long line in the build section preview, but when I publish / preview it - this text appears stacked even on a full laptop screen. Do you know why? Example, it's happening with the Top Label text of my first dropdown box as well as various other text labels. Thanks.

  • BJoanna
    Replied on July 17, 2018 at 8:51 AM

    Add the following CSS codes to your form to resolve the issue with the spacing:

    li#id_126 {

        padding-right: 0px;

    }

    li#id_127 {

        padding-left: 5px;

        padding-right: 5px;

    }

    li#id_128 {

        padding-left: 5px;

    }

    How to Inject Custom CSS Codes

    1531831490name Screenshot 10

    Here is my demo form - https://form.jotform.com/81973391196973 

    Feel free to test it and clone it

    It seems that you resolved your other issue? All of your field labels are top aligned. 

    1531831637top Screenshot 21