I am working in a project which have a current implementation of FreshDesk freshWidget Link using this code
FreshWidget.init("",{"queryString": "&widgetType=popup&helpdesk_ticket[requester]=chiperortizc@hotmail.com&disable[requester]=true&helpdesk_ticket[name]=Cristian Daniel Ortiz Cuellar - Copito&disable[name]=true&helpdesk_ticket[product]=1000005493&disable[product_id]=true&formTitle=Soporte+empresa&submitThanks=Gracias+por+ponerse+en+contacto+con+el+centro+de+soporte&searchArea=no","utf8": "?","widgetType": "popup","buttonType": "text","buttonText": "Soporte","buttonColor": "white","buttonBg": "#006063","alignment": "2","offset": "-1500px","submitThanks": "Gracias por ponerse en contacto con el centro de soporte","formHeight": "590px","url": "http://soporte.company.com"});
FreshWidget.show();
The widget is show all right but if the user click on close.. and later i need to show it again but sometimes with another another email or requester the widget always show the previuos loaded email.
Suppose the email from chiperortizc@hotmail.com is change to myemail@hotmail.com and try to execute this code
FreshWidget.init("",{"queryString": "&widgetType=popup&helpdesk_ticket[requester]=myemail@hotmail.com&disable[requester]=true&helpdesk_ticket[name]=Cristian Daniel Ortiz Cuellar - Copito&disable[name]=true&helpdesk_ticket[product]=1000005493&disable[product_id]=true&formTitle=Soporte+empresa&submitThanks=Gracias+por+ponerse+en+contacto+con+el+centro+de+soporte&searchArea=no","utf8": "?","widgetType": "popup","buttonType": "text","buttonText": "Soporte","buttonColor": "white","buttonBg": "#006063","alignment": "2","offset": "-1500px","submitThanks": "Gracias por ponerse en contacto con el centro de soporte","formHeight": "590px","url": "http://soporte.company.com"});
FreshWidget.show();
The plugin still shows the previous loaded email namely chiperortizc@hotmail.com and so on.
There is a way to show the email passed to requester thanks a lot sorry if the question is silly but i am a completely new to this API.
Best regards from Venezuela.