Thanks Victor!
it does seem to work with onbefore. I have also received detailed clarification on this solution from the team at Care that does make sense!
On the other end, how does the validation works on the form fields. I wanted to hide form fields dynamically based on user selection on the form.
For Example: If a user selects "Yes" from the drop down list (Existing Customer field) then show Account No text box and if the user selects "No" from the drop down list we hide Account No text box. (Is it doable? )
There are examples available under Genesys Engage section though (not sure if those are even applicable on PureConnect). Following the documentation here: -
https://docs.genesys.com/Documentation/GWC/Current/WidgetsAPI/CustCRFIt seems the validate function is the way to go but using validate function makes the custom JSON invalid and it doesn't get parsed. Here is what i get on the configuration section under custom JSON field: -
any thoughts? Has anyone achieved something similar?
------------------------------
Umair Khan
------------------------------
Original Message:
Sent: 06-25-2020 07:25
From: Victor Tortosa Lopez
Subject: Sending custom values from a WebChat Widget using Extensions
Hi Umair,
if you have the old WebTools correctly implemented, invoke the command like this:
oMyPlugin.command("WebChatService.setChatAdditionalAttributes", {
"XXXXX": "1234"
});
and it looks for in the CIC, in the interaction type Chat, a call attribute with the name "WebTools_XXXXX".
But effectively, you can only use it BEFORE starting the interaction.
Kind regards,
Víctor T.
------------------------------
Victor Tortosa Lopez
Team Vision S. A.
Original Message:
Sent: 06-14-2020 09:41
From: Umair Khan
Subject: Sending custom values from a WebChat Widget using Extensions
hi Kevin hi Samantha,
Thanks for your response.
I tried the setChatAdditionalAttributes command with some custom text set in the web chat form for account field. Where does it get received? Though, i also have a subject field on the form and it gets posted to the Chat Notes section as depicts below (custom subject value). Am i supposed to see additional attributes under notes section as well?
Here is how an interaction is answered by the agent but additional attributes doesn't seem to appear on agent's interface: -
------------------------------
Umair Khan
Original Message:
Sent: 06-12-2020 13:19
From: Kevin Wiegand
Subject: Sending custom values from a WebChat Widget using Extensions
This should get what you need, depending on how you defined the "account" control:
var service = CXBus.registerPlugin('MyCustomExtension'); service.before('WebChatService.startChat', function (e) { service.command('WebChatService.setChatAdditionalAttributes', { account: e.userData.account }); return e;});
The name "account" is directly linked to the form control's name, which would have been set in the inputs array for the new form, for example this is how I defined the control on my web chat:
{ id: 'cx_webchat_form_account', name: 'account', maxLength: 100, placeholder: 'Account', label: 'Account'}
------------------------------
Kevin Wiegand
Senior Software Engineer
Genesys - Employees
Original Message:
Sent: 05-18-2020 23:53
From: Umair Khan
Subject: Sending custom values from a WebChat Widget using Extensions
hi,
I have been trying to send widget form parameters to PureConnect after following the documentation. The easiest way i could find is to post form values to Chat Notes as the link suggests: - https://help.genesys.com/pureconnect/mergedprojects/wh_basl_connect/desktop/pureconnect_widget_extensions.htm
As the function description mentions, it needs to be called before the chat is being started. how can i set notes with the selected values from the web chat form? Intention is to send Member ID entered on the text box in the web chat form to the Interaction Notes section in Interaction Connect.
Here is how i was trying to do: -
Can someone assist here? If this is the right approach to send custom form values to Interaction connect?
Thanks
//UK
#Implementation
------------------------------
Umair Khan
------------------------------