Skip to content
Advertisement

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: ["test1@gmail.com", "test2@gmail.com"],
  },
});

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

Advertisement

Answer

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: ["test1@gmail.com", "test2@gmail.com"].join(','),
  },
});
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement