- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2022 02:07 PM
Once a case is submitted via the portal or catalog, the case variables tab value can be changed. If the 'application' variable is changed, it should change the 'application' form value to match.
I think I need an OnChange Catalog Client Script but am having trouble writing this.
See below for what I have started and please let me know if there is a better way to do this!
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
if (newValue != oldValue)
g_form.setValue('???');
}
Solved! Go to Solution.
- Labels:
-
Customer Service Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2022 02:32 PM
//if product changes on the variable, update on the form
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
if (newValue != oldValue)
g_form.setValue('application', newValue);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2022 02:32 PM
//if product changes on the variable, update on the form
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
if (newValue != oldValue)
g_form.setValue('application', newValue);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2022 02:33 PM
I figured it out but keeping posted in case it helps anyone else.