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
{{ message }}
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.
Is it possible to set a form field to be required if another form field has a value?
Pseudo Code Examples:
if ( "first_name" ) { "last_name" is required }
if ( "yes_no" === "yes" ) { "phone_number" is required }
I can add the required class to the labels on the form with Javascript, but obviously, the validation is not enforced on submit if the rule is not added to the field in the Controller.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is it possible to set a form field to be required if another form field has a value?
Pseudo Code Examples:
I can add the required class to the labels on the form with Javascript, but obviously, the validation is not enforced on submit if the rule is not added to the field in the Controller.
The text was updated successfully, but these errors were encountered: