Loading...
Loading...
After upgrading to Tokyo or later, in a catalog client script in service portal, doing `g_form.clearValue` and then `g_form.getValue` on a checkbox variable will return an empty string. In previous versions this would return 'false'.
In a Tokyo instance: 1. Import the attached catalog client script to print values of checkbox variable "acrobat" on change of the "photoshop" variable on the Standard Laptop item 2. Navigate to /sp?id=sc_cat_item&table=sc_cat_item&sys_id=04b7e94b4f7b4200086eeed18110c7fd&recordUrl=com.glideapp.servicecatalog_cat_item_view.do%3Fv%3D1&sysparm_id=04b7e94b4f7b4200086eeed18110c7fd 3. Open the JS developer console and clear it so to see only the new logging 4. Select and un-select the "Photoshop" checkbox to trigger the script The value is printed as "false", then is cleared and is printed as an empty string "", instead of being printed as "false" again since the checkbox is still unchecked.
This problem is under review and targeted to be fixed in a future release. Subscribe to this Known Error article to receive notifications when more information will be available. As a workaround, instead of clearing the value of a checkbox variable, use g_form.setValue('<fieldname>', 'false');
PRB1634193
Click on a version to see all relevant bugs
ServiceNow Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.