Home > database >  How can i prefill calendly guests email?
How can i prefill calendly guests email?

Time:03-02

i passed the prefill data using initPopupWidget.

window?.Calendly.initPopupWidget({
  url: schedulePageUrl,
  prefill: {
    email: auth.email,
    firstName: "",
    lastName: "",
    name: "",
    guests: ["[email protected]", "[email protected]"],
  },
});

But the form is empty, email is populated successfully. Also i clicked the Add Guests button to open the Guest Email(s) filed.

enter image description here

CodePudding user response:

The guests prefill value should be a string of comma separated values. You can update your code to the following to resolve this issue:

window?.Calendly.initPopupWidget({
  url: schedulePageUrl,
  prefill: {
    email: auth.email,
    firstName: "",
    lastName: "",
    name: "",
    guests: ["[email protected]", "[email protected]"].join(','),
  },
});
  • Related