Solved

FreshworksWidget('prefill','ticketForm', { type: ${request} })

  • 2 February 2024
  • 2 replies
  • 36 views

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.

icon

Best answer by Yusuf Ahmed 4 April 2024, 13:39

View original

2 replies

Userlevel 3
Badge +3

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!

Userlevel 6
Badge +8

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