Pesquisas recentes


Sem pesquisas recentes

Uncaught ReferenceError: zE is not defined



Publicado 20 de out. de 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 comentários

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


Por favor, entrar para comentar.

Não encontrou o que estava procurando?

Nova publicação