DiscipleTools / disciple-tools-bulk-magic-link-sender

disciple-tools-magic-links
Other
2 stars 5 forks source link

ML#89 - Form Field Submission Validation Feature #90

Closed kodinkat closed 1 year ago

kodinkat commented 1 year ago
corsacca commented 1 year ago

@kodinkat Looks like a lot change here. Would you be able to summarize?

kodinkat commented 1 year ago

@kodinkat Looks like a lot change here. Would you be able to summarize?

@corsacca

Sure thing - A new get_link_submission_field_validation_js_code() function has been introduced; with the main purpose of validating D.T fields against setting constraints - Initially, this is just focussed on the number field; but, has scope for more to be added.

This new function is/can be referenced by ML Types during form submission, to validate payload fields, before final push. If validation fails, a relevant error message is shown and form submission halts.

corsacca commented 1 year ago

Thanks @kodinkat !