SDK Mode
Last updated
Last updated
&mode=sdk
at the end of i.src.Here is an example:
Please replace the following parts with the necessary information:
<<Team Subdomain>>: You can find this information in the URL of your organization’s recatch URL (e.g. → your Team Subdomain is “company”)
<<Booking Page or Router ID>>: You can find this information in the URL of the relevant Booking Page or Lead Router
<<Theme>>: light
or dark
window.recatch
object in your console. Within the object, the open
function will be available for use.Please check if Re:catch is opened with the following function: window.recatch.open()
open
method’s signature looks like the following (in Typescript), and these values can be customized like the following:Here are the specific explanations of each parts:
initialFormValues: This is the default value of the Web Form that appears when the customer selects a meeting time in the Re:catch Booking Modal. The keys are name
, email
, phone
, and custom values.
Set the values like the following:
formAnswers: This option can only be used when using a Lead Router. The form answer that matches the names of the link created when creating the lead router is delivered in object form. You must enter the name as the key
and the form answer as the value
.
If you set your Form Mapping settings like the following in Lead Router:
Your code will look like this:
For example, assuming that the lead router is set up as above and the answer entered by the customer is name: Brian, email: , { name: 'Brian', email: 'brian@recatch.cc' } . 2. onBookingComplete: This is a callback function called when the reservation is confirmed. 3. onCloseByUser: This is a callback function that is called when the customer presses the X button to turn off the Re:catch Booking Modal.