Support Portal

Feeding Question Answers into the online booking widget (v1)

It expects an encoded URI of an encoded base 64 JSON string:


encodeURI(btoa(JSON.stringify(answersObj)));


The JSON is a collection of questionId as key and question answer as value: 


{"[questionId]": "string"}


The question ID can be obtained by our questions API. Or requesting this from support@qudini.com


There’s a limit to the size of the query param which is 2000 characters. That’s a browser hard limit.


This should then be passed to the booking widget via a query string qa. 


For example: 


/booking-widget/storefinder/1MC1E19SEDD1?qa=eyI2IjoiTm8iLCI3IjoiTm8iLCI4IjoiTm8iLCI5IjoiTm8iLCIxMCI6Ik5vIiwiMTEiOiJObyIsIjEyIjoiTm8iLCIxMyI6Ik5vIiwiMTQiOiJObyIsIjE1IjoiTm8iLCIxNiI6Ik5vIiwiMTciOiJZZXMifQ==


decodes to 

{"6":"No","7":"No","8":"No","9":"No","10":"No","11":"No","12":"No","13":"No","14":"No","15":"No","16":"No","17":"Yes"}


When the answers are passed to our booking page, the corresponding questions are hidden from the user, but passed during the create booking process and stored with the customer record. 



Did you find it helpful? Yes No