Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1144469

    Hi,
    I use an enfold contact form on a clients website.
    Required fields in which form element: selection button is used do not get a red border when the submit button is clicked and no selection has been made. Instead, these fields get a green border.
    I have them marked as ‘do not leave empty’.

    How can I get these fields highlighted in red so that users know they still have to make a choice?

    Kind regards,
    Brigitte Vos

    #1144945

    Hey 3Vosjes,

    Please try the following in Quick CSS under Enfold->General Styling:

    #top #wrap_all .valid .select {
        border: 1px solid red !important;
    }

    Best regards,
    Rikard

    #1144997

    Thanks Rikard, it works partially.

    Even when a choice has been made, the fields show a red border when the submit button is clicked.

    Non-required selection fields also have a red border now. These fields don’t need to be validated. I would like them to stay neutral.

    There’s this error-message showing up when the submit button is clicked. Why doesn’t it show at the selection fields?

    Best regards,
    Brigitte

    #1145881

    Hi,

    I tried reproducing the issue on my local installation however it works fine on my end – https://prnt.sc/pg2rus
    I noticed select element does not get “error” class when no selection made. Could you please try de-activating all active plugins and check if that helps?

    Best regards,
    Yigit

    #1146131

    Hi,
    I deactivated most plugins. Did not dare to deactivate Really Simple SSL and Go live Update URLS.
    Nothing happened.
    I provide you a link and credentials, maybe you can have a look at it yourself?

    Best regards,
    Brigitte Vos

    #1147636

    Hi,
    Sorry for the late reply, I’m not sure that I understand the issue because your form seems to be reacting as you described you wanted
    2019-10-13-164452
    required fields not complete marked red
    required fields complete marked green
    non-required field not complete and not marked
    Has this already been solved?

    Best regards,
    Mike

    #1147814

    Hi,
    No, the problems hasn’t been solved jet.

    The problem is the required fields in which a selection must be made, such as the first field of the form.
    These fields get a green border even when no choice has been made.

    The text in the field says: make a choice.
    ‘Make a choice’ is part of the dropdown menu, but maybe it shouldn’t be a part of it.
    When ‘make a choice’ is visible in the selection field, a red border should be displayed.
    ‘Make a choice’ should not be validated as a choice option.

    Does this explanation make the issue more clear?

    Best regards,
    Brigitte Vos

    #1148512

    Hi 3Vosjes,

    If the fields are not marked as required they will not be marked red or validated. If you need to change this behavior you need to set fields to required or hire someone to customize the JavaScript for you.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1148901

    Hi,
    The problem is solved. This topic can be closed.
    Thank you very much for the effort.

    Best regards,
    Brigitte Vos

    #1149090

    Hi Brigitte,

    Great, I’m glad to hear that everything is working as it should. I’ll close this thread for now then, please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Form validation error’ is closed to new replies.