Currently when a user clicks on the 'Refresh availability' button, if there are any required fields not field out in the form, no results get returned and instead we get errors. Not the best user experience. What would be better is if the validation of the bookings widget was independent from the rest of the form.
Patch is coming.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | fix_validation_errors-1922990-1.patch | 1.37 KB | codesidekick |
Comments
Comment #1
codesidekick commentedPatch is attached. Uses Form API limit_validation_errors property to only validate the widget.
Because a #submit function is not set on the 'Refresh availability' button, if the form is submitted without JavaScript using the 'Refresh availability' button, the limit_validation_errors property won't come into effect (so it's pretty secure).
Comment #2
sukr_s commentedThanks. patch incorporated.