最近搜索


没有最近搜索

Uncaught ReferenceError: zE is not defined



已于 2022年10月20日 发布

My console shows the following error:

"Uncaught ReferenceError: zE is not defined"

I'm adding in     zE('webWidget', 'hide');

in a script for one particular page where the entire web widget must be hidden for compliance reasons.

We are injecting the web widget script in the header.

To hide the widget, I'm following the step outlined with an example here: https://developer.zendesk.com/api-reference/widget/api/#zehide


0

3

3 条评论

image avatar

Greg Katechis

Zendesk Developer Advocacy

Hi Ross! It's likely because you're running that function before the widget script has loaded. Can you let us know if you're calling the hide function before or after the widget script?

0


Hi Greg Katechis, maybe you can help me out.
We bought the developer license for a custom theme in our Help Center, and now we would like to add authentication for the widget if the user is logged in. I tried following code snippets but now getting the error above. I have been adding code to document_head.hbs

0


Re-created the ticket in the Developer section as advised by other support agents, this can be closed.

0


请先登录再写评论。

找不到所需的内容?

新建帖子