- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2022 06:33 AM
hi
My requirment is i want to display a field and it should be mandatory, i want to display a field when defects is selected in a list collector variable, but iam getting the field also when i select the other variable in the list collector? i have written on change client script but it is displaying the new field for two values where as i want to display value only when defects is selected?
kindly look into screenshots.
the new field should not be visible while selecting incident but what happening is that if i select defects and remove defects and select incident the new field is not hiding
Solved! Go to Solution.
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2022 08:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2022 06:47 AM
Hi sai
can you share the client script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2022 06:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2022 06:58 AM
can you share the client script which you already wrote?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2022 07:41 AM
Hey Sai,
List collector always return sys_id, but over there you are checking the new value with the display name.
-
alert(newValue); //for checking whether we are getting the correct sys_id from the list collector if(newValue == '75d20d9f87ea8110b23b4087cebb3579') {// sys_id for slected in list collector g_form.setDisplay('company', true); g_form.setMandatory('company', true); }
Please update & check , it's working or not. If not please try the solution provided by me using system property, script include & client script
Mark it helpful & correct, If applicable
Cheers..!
Happy Learning
Tushar