Validation of conditionally displayed field

Hi!

I found a problem that occurs when you have a conditionally displayed (required) field, that is a SELECT and has a placeholder:P

Even if condition isn’t met, and the field isn’t displayed, the user won’t be able to submit the form. It still shows error that the field is required.

Remove the placeholder, and the issue is gone - the user won’t be blocked from submitting the form.

hi, any update here?:slight_smile:

Fixed :slight_smile: Will be deployed with the next update. Thanks for reporting! :folded_hands:

superb, many thanks:)

Hi, unfortunately it is still buggy and doesn’t work as it should:( Now when the conditional field is visible but not filled by user, when you hit submit the page won’t scroll up the the element that is required and not filled:-s It works with fields with no conditions, but in this case where I have conditional fields it doesn’t… would you be able to provide at least some temporary solution like php snippet or JS before there would be a proper fix for that?

So in general it works now, but the missing thing is that it`s not scrolling up to the invalid field? Do I understand it right?

Hi, exactly. Right now user could be confused why the form isn’t submitting correctly, because with normal fields it scrolls up, but with the conditional fields there is no interaction… is there any chance you can provide a code/fix so I can apply it on my client’s page?

hi, any update here?:frowning:

The validation logic has completely been refactored. The scrolling to the field logic has also been fixed. Will be deployed in the next days :slight_smile:

thx, waiting impatiently :joy: