在nylas的预约表格中预填用户信息

问题描述 投票:0回答:1

我正在使用nylas Scheduler v3,下面是我的代码,我如何在预约表格中填写用户数据,例如姓名,电子邮件。

const nylasScheduling = document.querySelector('nylas-scheduling');
nylasScheduling.clientId = NYLAS_CLIENT_ID;
nylasScheduling.slug = schedulePageName;
javascript
1个回答
0
投票

可以通过传递 bookingInfo 属性来完成,如下面的代码所示

const nylasScheduling = document.querySelector('nylas-scheduling');
              
nylasScheduling.clientId = NYLAS_CLIENT_ID;
nylasScheduling.slug = schedulePageName;

nylasScheduling.bookingInfo = {
    primaryParticipant: { name : 'maaz qureshi', email: '[email protected]'}
};
© www.soinside.com 2019 - 2024. All rights reserved.