Skip to main content
Solved

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

  • February 1, 2024
  • 2 replies
  • 144 views

DiscoStew
Apprentice

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.

Best answer by Yusuf Ahmed

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!

2 replies

Yusuf Ahmed
Community Manager
Forum|alt.badge.img+8
  • Community Manager
  • Answer
  • April 4, 2024

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!


Kamakshi V
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • April 8, 2024

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.