Skip to main content
Solved

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


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!

View original
Did this topic help you find an answer to your question?

2 replies

Yusuf Ahmed
Community Manager
Forum|alt.badge.img+7
  • Community Manager
  • 123 replies
  • 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+10
  • Community Manager
  • 286 replies
  • 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.


Reply