Error message on required field

  • Cormac_cormac
    Asked on March 2, 2021 at 5:57 AM

    Hi there

    Regarding this form:

    https://eu.jotform.com/build/210472535128350


    When user enters the first name, the form prematurely gives an error that the surname is required. Is there any way to overcome this?

  • egehatirnaz JotForm Developer
    Replied on March 2, 2021 at 7:07 AM

    Hello Cormac_cormac,

    If you do not need Name & Surname field to be required, you can disable the required mode from Build > Click on the Name field > Properties > Required
    1614684102 603e1fc6c9142  Screenshot 10If the user has filled out the name and clicked anywhere outside the field, an error will show up as the "Last Name" field is still empty.

    To prevent that, you can make two separate form fields for "First Name" and "Last Name" by using two "short text" fields:

    1614686354 603e28921d247  Screenshot 211. Select "Short Text" from Basic Form Elements and drag it to your form.
    2. Set the label to "First Name".
    3. Click on the "Properties" next to your form element.
    4. Set the "Required" property to "On".

    Repeat these steps one more time to create the "Last Name" field as well.

    If you have further questions, please do not hesitate to contact us!