i passed the prefill data using initPopupWidget
.
JavaScript
x
11
11
1
window?.Calendly.initPopupWidget({
2
url: schedulePageUrl,
3
prefill: {
4
email: auth.email,
5
firstName: "",
6
lastName: "",
7
name: "",
8
guests: ["test1@gmail.com", "test2@gmail.com"],
9
},
10
});
11
But the form is empty, email
is populated successfully. Also i clicked the Add Guests
button to open the Guest Email(s) filed.
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:
JavaScript
1
11
11
1
window?.Calendly.initPopupWidget({
2
url: schedulePageUrl,
3
prefill: {
4
email: auth.email,
5
firstName: "",
6
lastName: "",
7
name: "",
8
guests: ["test1@gmail.com", "test2@gmail.com"].join(','),
9
},
10
});
11