- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2020 05:54 AM
Hi,
Could anyone help me with a solution to that issue?
In Change Request related list I created a new record on Problems table.
On that record, I set Category to Software
Then Change Request state will be changed to Closed.
After changing CR state to Closed, I want to see Category field readonly.
I created BR (on display) and UI Policy but it doesn't work
UI Policy script
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2020 06:50 AM
You want to make Problem's Category field as read only, then you can write UI Policy on Problem table.
After that try applying conditions in "when to apply" as"
Category -- is -- Software AND
Parent.State -- is -- Closed
(If Parent.State doesn't work then check for "Change request" field and instead of Parent.state, check with Change request.State -- is -- Closed)
You can have UI action: Category as read only.
Give it a try & let me know.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2020 09:50 PM
Hi Miro,
Which filter condition did you applied?
Thanks,
Dhananjay.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2020 07:40 AM
Hi,
You can use below script in any of your onLoad client script on problem table to make category readOnly when your your change is closed.
var change = g_form.getReference('rfc',callbackFun); // on problem table rfc referece to the parent change record
function popCallerInfo(change){
if(change.state ==3||change.state=='3'){
g_form.setReadOnly('category',true);
}
Thanks,
Anil Lande
Thanks
Anil Lande