We've done installs where the store owner wanted the ability to let customers reset the booking form. For example if you want to set the maximum stay of 14 days and you put in start and finish dates then decide to change the start date you can't choose anything that is further than 2 weeks out.
To fix this we can add a Reset button which clears the start and finish fields.
To add this functionality you can add the code to the booking-form.snippet.
At line 18 you can see where the reset button is defined.
Line 28 - 43 shows the additional Javascript.
Comments
2 comments
Hello and thank you for creating this.
Is this still valid snippet code, and if so can we get a repost of it? It is not showing here on the page any longer.
Thank you!
Hi Steve,
Sorry about that. I needed to update the Zendesk settings.
You should be able to see the code now.
Thanks, Gavin.
Please sign in to leave a comment.