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
So, email is marked required in the layout, but after check marking the 'Spam Me'(switch) button, though email is marked required and shows with * in the Ui, the submit button is still enabled and user is allowed to submit.
Expected behaviour: User should be allowed to submit when switch is false, but if true, shouldnt be allowed to submit until email is filled in and submitted.
The text was updated successfully, but these errors were encountered:
sunnydsouza
changed the title
'required': truw marked under layout still allows you to submit form without filling required field
'required': true marked under layout still allows you to submit form without filling required field
May 16, 2024
I was looking at your playground example
https://hamidihamza.com/ajsf/?set=asf&example=asf-hack-conditional-required&framework=material-design&language=en
I can see that under 'layout' ('form') we have
"switch",
{
"key": "email",
"condition": "model.switch",
"required": true
},
So, email is marked required in the layout, but after check marking the 'Spam Me'(switch) button, though email is marked required and shows with * in the Ui, the submit button is still enabled and user is allowed to submit.
Expected behaviour: User should be allowed to submit when switch is false, but if true, shouldnt be allowed to submit until email is filled in and submitted.
The text was updated successfully, but these errors were encountered: