My client has used the default Wix booking app as part of their site.
I need to set the value of one of the fields inside that form, but i cannot see how to access the field to set its value - is this even possible?
The booking form identifies itself as an iFrame, and using the editor there is no way to select individual fields (they are editable via the settings part of the booking form, but i need to programmatically set the value of a field).
Greetings @Stuart Sonic , So just as we discussed in https://www.wix.com/velo/forum/coding-with-velo/assigning-getserviceavailability-slots-to-datepicker, you cannot edit the default bookings widgets and you need a custom bookings flow in order to customize the flow with the required info. If you need further code examples, let me know.
Thanks for your reply. Yes it feels like I need to build the whole booking system manually to achieve this seemingly simple task.
Though I am struggling to find a calendar widget that operates like the one from the built-in booking system. All I can find is datepicker and timepicker.
Is it possible to create my own form and have that become the final part of the booking flow? That would save a lot of reinventing the wheel here.
Hello. Unless you create a custom form, I am unaware of anyway to directly access that field like you would with an editor element you added through $w...
I have not done much testing with the Wix bookings API myself yet, but would you be able to use checkoutBooking?
Also, if you haven't run into it yet here is an article about the bookings lifecycle that might be of use in figuring out where/when to query the collection/update data etc.
If you really need full control of the fields, you will want to build a custom bookings experience/pages which it sounds like you already know about but are trying to avoid. I am just mentioning it for anyone passing through this post.