Open widget programmatically



已于 2023年2月10日 发布

The use case is to programmatically open the Zendesk widget on certain actions in our dashboard, and prefill the customer's information. 
 
I'm using a React library(https://github.com/B3nnyL/react-zendesk) as a wrapper over the Zendesk web widget API.
I'm trying to programmatically open the widget, using the wrapper as
ZendeskAPI("webWidget", "show");
This internally calls the Zendesk API as
zE('webWidget', 'show');
 

But, the widget doesn't display. I'm also trying to use the prefill function like below, which also doesn't work.

zE('webWidget', 'prefill', {    
name: {

value: 'isamu',

readOnly: true // optional

},

email: {

value: 'isamu@voltron.com',

readOnly: true // optional

},

phone: {

value: '61431909749',

readOnly: true // optional

}

});
 
Is there any additional configuration to be enabled from our account?
I have confirmed that the Zendesk script has loaded and the widget also appears on the page. Only these programmatic triggers aren't working.
 

0

3

0 条评论

登录以发表评论。

找不到所需的内容?

新建帖子