我在 Calendly 中有一个“电话呼叫,一对一”事件类型,我想为其提供自定义的嵌入脚本。根据文档我发现location
参数/字段可用于通过 URL 预填充电话号码,但它不适用于这种嵌入代码,它不会预填充内联小部件。其他所有内容都会进入并填充 Calendly 小部件。有谁知道如何对电话号码字段进行预填充?
Calendly.initInlineWidget({
url: 'https://calendly.com/<company_name>/free-consultation-30-mins',
parentElement: document.getElementById('calendly-widget'),
prefill: {
name: form.fname + ' ' + form.lname,
email: vm.form.email,
location: '8184481727',
customAnswers: {
a1: form.other_info,
a2: form.credit_card_debt, // cc debt
a3: form.irs_debt, // how much tax debt,
a4: form.unfiled_returns, // how many unfiled tax returns
a5: form.state // which state
}
},
utm: {}
});
我在 Calendly 工作。看起来这是我们嵌入代码中的一个错误,您应该能够通过prefill
目的。修复后我会回复,但目前建议的解决方法是附加location
参数直接传递到预订 URL,绕过prefill
object:
Calendly.initInlineWidget({
url: 'https://calendly.com/<company_name>/free-consultation-30-mins?location=8184481727',
parentElement: document.getElementById('calendly-widget'),
prefill: {
name: form.fname + ' ' + form.lname,
email: vm.form.email,
customAnswers: {
a1: form.other_info,
a2: form.credit_card_debt, // cc debt
a3: form.irs_debt, // how much tax debt,
a4: form.unfiled_returns, // how many unfiled tax returns
a5: form.state // which state
}
},
utm: {}
});
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)