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.

Comments

codesidekick’s picture

StatusFileSize
new1.37 KB

Patch 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).

sukr_s’s picture

Assigned: codesidekick » sukr_s
Status: Needs work » Fixed

Thanks. patch incorporated.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.