Custom validation of form field does not match up with "isValid" value of that field

The custom validation js that AI wrote for this username field works like a charm. It is always outputting the boolean correctly.

However, the main “isValid” field of the form data does not match up.
cv true → isValid = undefined
cv false → isValid = true

Thank you very much for an advice on where to check further!

1 Like

I’m having the same problem. I had no choice but to create a boolean global variable and setup the validation manually using workflows and conditional logic in the submit button.

1 Like