• Hello everybody,

    I would like to mark the fields in red in my contact form that have been filled out incorrectly or not at all after sending the form. So that the person knows which field is not correct or missing. How do I do that? Can anyone help me?

    Many thanks for your support.

    Kind regards Silvia

    • This topic was modified 6 years, 1 month ago by silviapinjuh.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Do you mean you want them to be “required” fields?, so the visitor MUST fill them in ?

    if so, then add an asterisk just after the word “select”
    from this
    Do you like cheese? [select cheese first_as_label "Please choose.." "Yes" "No"]
    to this
    Do you like cheese? [select* cheese first_as_label "Please choose.." "Yes" "No"]

    or a text box reply would be
    Your name:* [text* your-name]
    this makes the field a required one and must be answered

    Thread Starter silviapinjuh

    (@silviapinjuh)

    No. I mean if a customer fills out the contact form with all fields and then clicks send, an error message will only appear under the send button if a required field is not filled out or the e-mail address is incorrect.

    It would be nice if the field where the error exists would be marked red, so the customer knows which field is wrong. For example he forgets the @ in the field Email and presses send. Then it would be nice if the email field would turn red, so that he knows that he has entered something wrong.

    Do you know what I mean?

    Kind regards Silvia

    It does that on my form ?
    see image here
    i changed the colour of the rror text via the CSS.

    have you looked on the form “messages” tab, next to the mail tab ?

    Thread Starter silviapinjuh

    (@silviapinjuh)

    Yes I want to have it like on your form…
    You can see it on here…

    https://glibo-consulting.com/2020/05/09/automatisch-gespeicherter-entwurf/

    there is just an error message under the send button and not under the field which is wrong or not filled out….

    In the mail tab I can just set up the error messages under the button…

    are you using the correct form tags for those fields.
    try a test form using just this..

    Your name:* [text* your-name]
    Your email address:* [email* your-email]
    Your Mobile Number:*[tel* tel-746]
    Your Date of Birth: [text homedob "DD/MM/YYYY"]
    Your House No:* [text* homehseno]
    Your Postcode:*[text* Postcode]

    see if you get error messages under each one

    Thread Starter silviapinjuh

    (@silviapinjuh)

    The form tags are right, but I don´t still get error messages under each field…that´s really tricky…

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Help needed to display the missing or incorrect fields after sending the form’ is closed to new replies.