Recent searches


No recent searches

Uncaught ReferenceError: zE is not defined



Posted Oct 20, 2022

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 comments

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


Please sign in to leave a comment.

Didn't find what you're looking for?

New post