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).
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.
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.
Since I have not had the opportunity to work much with the Bookings App/API yet, I have reached out to someone from that team to see if they can provide more guidance. I don’t want to steer you in the wrong direction. I will respond when i know more.