Closed wallythewebdev closed 1 year ago
Hello, The errors macro is not part of the plugin is just default Twig Templating system behavior. However, there are two ways to solve this:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi (again).
Just wanted to touch base on the ideal (or default intended) way to handle errors in JS to prevent form submission while required fields have not fulfilled their requirements.
PHP method default - Very cool Macro picks up on any Macros, but requires on page reload (which I am avoiding for a seemless UX):
In JS as per the docs, using Ajax to submit the form:
Does wheel form have a built in JS function that checks for the validation of form fields? I have wrote a custom one, but I was just wanting to checkin if there is an official way to handle form validation?