Reverse script is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2023 09:57 PM
Hi All,
I have create one script in catalog client script basis on category and subcategory some variable should display on service portal.it is working fine but revers script is not working please let me know the solution. I have right down my script below.
Thanks & Regards
KP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 09:57 PM
@keval3 ,
Try Setting up setMandatory to false before making them visible false.
Thanks and Regards,
Rahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2023 11:01 PM
Hello,
From the script that you have provided, you are looking for a UI Policy. You can create an UI Policy with the conditions that you are checking in the if condition <field1Value == 'Position ID Creation' && field2Value == 'employee_data_management'> and if those conditions are met you can create UI Policy Actions for the fields that you are setting to visible and mandatory, those here:
And you can just click the reverse if false checkbox on the UI Policy and it is going to revert them if the conditions are not met.
Hope that this is going to help you!