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

I’m having the same issue.

1 Like

By comparing a field that works with the one that does not work I might have found the origin of that issue. @avidflow and @jose could you please give feedback if that is the issue for you too?

When I use the binding button (clicking the plug symbol) to add the custom validation formula, the validation result is faulty.

When I add the formula “directly” into the formula field (plug symbol stays, no violet dot) it works.

I can switch it back and forth and get it working/not working.