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
Validation logic for requiring one of either fields to be filled, but not requiring both necessarily has to be done outside of the form definition.
While not a big deal, since it feels like the purpose of validators is to save the programmer to add extra validation logic outside from form creation, it would be nice to have the possibility to define a validator that gets executed when field.data is empty and the field is not required.
The text was updated successfully, but these errors were encountered:
User has to define emergency contacts for a given situation. We accept require the user giving either the e-mail or the cellphone number of the contact. If both are provided, the contact is done via both ways; if only the e-mail or the cellphone is given, then only via either way they will be contacted. If non is given, the emergency contact is not accepted, since there's no way to contact him/her.
Interesting! I'll have to think about what sort of API would make sense for that, and how much complexity that would add to forms. If it can be added simply, then awesome, otherwise I'll end up suggesting that you just check that yourself :-)
Validation logic for requiring one of either fields to be filled, but not requiring both necessarily has to be done outside of the form definition.
While not a big deal, since it feels like the purpose of validators is to save the programmer to add extra validation logic outside from form creation, it would be nice to have the possibility to define a validator that gets executed when field.data is empty and the field is not required.
The text was updated successfully, but these errors were encountered: