- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2023 12:34 AM - edited 11-03-2023 12:35 AM
Hi ,
I havea question here, there is a variable checkbox on catalog item, if box is checked, 'enter wbs code' variable field will be filled with word 'Pending'.
below code works only in native ui when we use 'try it' but not from sp portal . please help me to resolve this.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
if (newValue == 'true'){
g_form.setValue('enter_wbs_code', 'pending');
}
else{
g_form.clearValue('enter_wbs_code');
}
}
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2023 12:43 AM
Hi @Bindhu1
Make sure you have selected UI type as ALL on client script :
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2023 12:43 AM
Hi @Bindhu1
Make sure you have selected UI type as ALL on client script :
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2023 12:48 AM
oops! I had forgot to change that, Thanks !

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2023 12:51 AM
Hi,
Please check and verify that you have selected to run the Catalog Client Script in both Native and Portal UI.
(UI Type == All)