Edit Row of Multi-Row Variable Set triggering "On Change" catalog client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2021 11:07 AM
I have a MRVS with 3 variables, one Select Box and two Single Line Text. The Select Box has 2multiple choices and also configured to include "None".
Created a catalog client script (On Change) that will set the values of two Single Line Text fields based on the selection from Select Box.
The defaults values populated by on change client script can be modified before adding the row data.
The problem I am facing is that when I try to edit the row, it is triggering "On Change" client script and setting the values of the two single line text fields to default value and causing the modification to the default value (I made when I added the row for the first time) to revert back.
Just for test I added an alert in the "On Change" client script and I could see the alert message immediately when I click on edit icon, before even displaying the mrvs form. Once I click "Ok", the form appears and the values are set to default values.
Why "On Change" client script is getting triggered before even making the mrvs form visible (i.e .. no change to the value of Select Box variable)?
If this is the default behavior (ideally it should not be), Is there any way to fix this?
Thanks in advance.
Suneel
- Labels:
-
Request Management
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2021 03:15 PM
Sorry, I can't think of what would cause an onChange script to trigger when an existing row on an MRVS opens, unless something is changing the variable that the onChange script is set for. Maybe try temporarily inactivating anything else running on the MRVS.