Client side validation of DOB

stromb0li

Active member
Affected version
XF 2.2
When requiring date of birth, the individual text fields do not have validation and will only return back invalid server side.

Expected behavior:
When arg-required="{{ true }}" is passed to xf:macro template="helper_user_dob_edit"; each xf:textbox should have required="required" added to help proactively catch validation errors.

pattern="([1-9]|[12][0-9]|3[01])" can also be used for dob_day
 
Last edited:
Top Bottom