Autopopulate multiple values based on Options selected in List Collector variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 04:22 AM
Hi Community,
I have a requirement, in catalog form i need to populate multiple value in multiline text variable based on the option selected in list collector variable.
So i have written a onchange client script and script include but only one value is getting displayed in multi line variable.
client script:
FYI values will be shown in select print groups (list collector) based on value selected in select site name (lookup select) variable by
But as of now only one value is getting populated if i select tampa zebra print group then all 3 printer values need to be populate.
And one more thing in select print group duplicate is getting as u can see 3 tampa zebra print group is there it should be only one
How can we achieve this
Thanks in advance
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 05:43 AM
Hello @suuriya ,
In your client script
var getCI = g_form.getValue('select_print_groups').split(","); // list collector variable name
remove .split(",");
use this
var getCI = g_form.getValue('select_print_groups')// list collector variable name
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.