- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2022 01:06 AM
When state is closed complete, it should make all the fields read only.
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2022 01:09 AM
Write the following client script :
if(g_form.getValue('state') == 3){
var x = g_form.getEditableFields();
for(i = 0; i<x.length; i++){
g_form.setMandatory(x[i], false);
g_form.setReadOnly(x[i], true);
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2022 01:09 AM
Write the following client script :
if(g_form.getValue('state') == 3){
var x = g_form.getEditableFields();
for(i = 0; i<x.length; i++){
g_form.setMandatory(x[i], false);
g_form.setReadOnly(x[i], true);
}
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2022 01:14 AM
Hi Saichandu,
You can make this possible by ACL and Client script. ACL is the best practice and you doesn't need any code by using ACL.
Kindly mark correct and helpful if applicable

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2022 01:19 AM
Hi,
You can write an UI policy on catalog task page as below
Condition : State is closed complete.
In UI policy actions, add fields whatever you need and set readonly to true.
Regards,
Sumanth

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2022 01:26 AM
Best way to achieve this would be to Add condition in you write ACL for table, where you can update the Condition as state is not closed
This is how you can protect editing of closed tickets.
Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions 🙂
Aman Kumar