[英]Beacon prefill function
I already set up the Beacon 'identify' stuffs, and can open up using Beacon("open");
我已经设置了Beacon的“ identify”东西,并且可以使用Beacon("open");
But when I try to use prefill
function, i'm getting some error. 但是,当我尝试使用prefill
功能时,出现了一些错误。
Beacon("prefill", {
name: "Steve Aoki",
email: "steve@aoki.com",
subject: "Need help with invoice",
text: "Hello, I need some help with my invoice. See attached.."
})
Error: Uncaught TypeError: Cannot read property 'filter' of undefined
Any code that I missed? 错误: Uncaught TypeError: Cannot read property 'filter' of undefined
我错过了任何代码? Thanks in advance. 提前致谢。
You need to have a fields
array, because in the example you posted, the one thing your code doesn't have is a fields
array. 您需要有一个fields
数组,因为在您发布的示例中,代码没有的一件事是fields
数组。 This is also shown because filter
is an array method, and calling fields.filter
when you don't have fields
will result in an undefined
error. 由于filter
是一个数组方法,没有fields
时调用fields.filter
也将导致undefined
错误,因此也会显示出来。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.