variable set fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2024 10:37 PM
Hi Team ,
Need help ,
The ' Short description ' and ' Description ' , are coming from variable Set .
And I want to make this variables not visible , when ever the [ Request category = production access to scdass ]
Please provide me Client Script .
NOTE - Please give Cilent Script only instead of UI plocy . Why because there are some confusion's in UI Plociy .
Please give Cilent script :
When ever user selects " Request category = production access to scdass " >>>> short desp and desp , has to be not visible .
Please give Cilent script :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2024 10:51 PM - edited 03-10-2024 11:43 PM
Hi @nameisnani ,
Create onChange client script on request category variable
Make sure Mandatory checkbox is unchecked for both variables (description and short decription)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2024 10:53 PM - edited 03-10-2024 10:56 PM
Hi @nameisnani
You should try using ui policy.
If you still want to use client script, then the reason why the field is not getting hidden is because its mandatory. Make non-mandatory before hiding(do it for fields you want to hide).
Variable name - Request category
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
if (newValue == 'production access to scdass') {
g_form.setDisplay('short desp',false);
g_form.setDisplay('desp',false);
}
}
ON client script & Check the checkboxes to run on Requested Items & on Task level
Please mark reply as Helpful/Correct, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2024 11:04 PM
Hi @nameisnani
refer to the below screen shot.
Thanks
dgarad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2024 11:20 PM
In the single quote ' ' we need to pass value right ,
not the name.