I haven't had a chance to try this but I assume you are using the new List type objects in the script and assigning the drop down to one of these List Variables.
What you then need is our DataAction to provide a List you can assign to the that Variable
Something to try, instead of using an array as the output, have a flat string with values delaminated with the new line character /n and assign that to the variable.
However another approach entirely is, It sounds like you have 3 static lists, and if the agent selects value A from List 1 then Display List 2, if they select Value B from List 1 display List 3 etc right?
Depending on how big these lists are and how deep they go, you could just create the lists in Scripter, and set assign visibility variables. And on the drop down under advanced there is Change Action, set this action up to set those visibility variables, so if Value == A, set List 2 to true, else set to false, if value == B set to True else false etc etc etc. A lot more effort especially if it is several layers deep, but if you can't it working through DataActions it might be an option.
------------------------------
Anton Vroon
------------------------------
Original Message:
Sent: 11-23-2022 09:53
From: Naga Pavan Kalyan Mullapudi
Subject: Scripts
Hi Albeto,
Good Morning..!
First of all I would like to thank you for investing your time on my request and getting back.
We created a data action that pulls the list of values for 2nd drop down by taking the value selected in 1st drop down as input. Same data action can be used for retrieving the values in 3rd drop down taking the combination of values selected in 1st and 2nd drop downs. The data action is working perfectly as expected.
we are calling the data action from the drop down 1 and 2 to retrieve the list of values from data table for dropdown 2 and 3 resp, but we are unable to use the output values from the data action as list of values in drop down 2 and 3.
Thank you.
------------------------------
Naga Pavan Kalyan Mullapudi
NationsBenefits, LLC
------------------------------
Original Message:
Sent: 11-23-2022 02:56
From: Alberto Sagredo
Subject: Scripts
Hi Naga
I have been doing a research also in dev forum, but could not find if this can be done
I have been thinking and maybe a workaround if this works for you is to have options that open new pages where you add also options that will open new pages or do data actions.
I dont know if this can work for you.
I found some links related i put here for your inspection
Reset dropdown list back to default
Also check our ideas forum where you can vote or add yours if already does not exist
Genesys Cloud Ideas Portal
Regards
Albeto
------------------------------
Alberto Sagredo
Sr Technical Account Manager EMEA
Genesys - Employees