You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On this page we have a form that uses the build in conditional logic to show/hide two input fields.
The two fields should be required when they are visible so i add validation based on if they are visible or not.
The problem we are facing is when the fields become visible (they are hidden by default), the class is-invalid automatically gets added to the fields resulting in the fields looking like they were incorrectly submitted while this isn't the case.
Did we set it up wrong or is this a bug?
I'll provide some images to visually show what's happening.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
On this page we have a form that uses the build in conditional logic to show/hide two input fields.
The two fields should be required when they are visible so i add validation based on if they are visible or not.
The problem we are facing is when the fields become visible (they are hidden by default), the class is-invalid automatically gets added to the fields resulting in the fields looking like they were incorrectly submitted while this isn't the case.
Did we set it up wrong or is this a bug?
I'll provide some images to visually show what's happening.
Beta Was this translation helpful? Give feedback.
All reactions