Search code examples
javascriptreactjscalendly

How can i prefill calendly guests email?


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


Solution

  • 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(','),
      },
    });