0

我使用initPopupWidget.

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

但表格为空,email已成功填充。我还单击了Add Guests按钮以打开提交的访客电子邮件

在此处输入图像描述

4

1 回答 1

1

guests填充值应该是一串逗号分隔值。您可以将代码更新为以下内容以解决此问题:

window?.Calendly.initPopupWidget({
  url: schedulePageUrl,
  prefill: {
    email: auth.email,
    firstName: "",
    lastName: "",
    name: "",
    guests: ["test1@gmail.com", "test2@gmail.com"].join(','),
  },
});
于 2022-03-02T12:39:38.870 回答