how to make variables readonly on variable editior on task and ritm level
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 08:43 PM
Hi Connections,
I have multiple ui policies on same variables a few, the issue is on the form the behaviour is working as expected, but on ritm and task level the variables are not becoming read-only more over the variables which is not visible is visible on ritm and task level. how to overcome this issue.
any help is appriciated.
Thanks in advance
Rafmine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 11:03 PM
its not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 11:17 PM
Hi @Community Alums ,
can you check if those fields where set mandatory by you if yes plz add additional lines to your above code before making it readonly. Something like below.
g_form.setMandatory('field_name',false);
g_form.setReadOnly('field_name',true);
Mark my response helpful & accepted if it helped you resolve your issue.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 09:04 PM
Hi @Community Alums ,
In order to make fields read-only create a new UI policy or client & include all the variables which u want to be read only. Please ensure in this ui policy or client script u check the applies to Requested Item n applies to Catalog task checkbox to true & uncheck the applies to Catalog item .This will make ur variables as read only on both ritm n task level. No condition needs to be applied in this scenario.
In order to hide the unwanted variables which are visible on RITM n task level u need to again follow the same approach create a ui policy or client but this with specific condition in order for the variables to be hidden or visible false. Condition is mandatory .
Mark my answer helpful & accepted if it helps you resolve your issue.
Thanks,
Danish