Skip to main content

I have a React App where I have made a React Component to call the FreshworksWidget.

This works great for sending props for API commands like:

`FreshworksWidget('close')`

`FreshworksWidget('open','ticketForm')`

`FreshworksWidget('open','article', { id: ${article} })`

 

But when I try to call:
`FreshworksWidget('prefill','ticketForm', { type: ${request} })`

 

I am receiving the error `VM4910:1 Uncaught SyntaxError: Unexpected identifier 'XXX'`

where ‘XXX’ is the string from ${request}

 

Is there something different in how ‘prefill’ works? All attributes of ‘prefill’ generate this error. e.g. subject, derscription, etc.

Hi @DiscoStew,

 

Greetings from Freshworks community. I can see that there was a support ticket rasied for this and the issue is resolved, Feel free to reach out to us anytime if you require any further assistance.

 

Happy Freshdesking!


Thank you for the update, @Yusuf Ahmed. This issue is now marked as resolved. Please feel free to share any resources or solution articles related to this.


Reply