Onchange client script - select box variable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 08:02 PM
I want to create a onchange catalog client script for State/Market variable.
if the value of state/market is choosen as "texas" and value of Do you need to set it up as is "standard_tx"
I need to add option to care manager type/skills variable.
I created a onchange client script for variable - state/market , but its not working:
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
if ((newValue == 'texas') && (g_form.getValue("do_you_need_to_be_set_up_as") == "standard_tx")) {
g_form.addOption('care_mgr_type', 'bx', "bexardemo");
}
//Type appropriate comment here, and begin script below
}
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2023 09:07 PM
choices are around, 200 in count. I am able to get it using client scripti. hope this is the best way or I am not sure if this acheivable through script include.
