- 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
‎11-16-2023 09:25 AM
Hi, I have so similar question. I want to make all fields only readable when the status is closed or canceled for Change requests and for Change tasks.
I have this code in Client script onchange at first for field "state = closed":
Is it right or what I have to change, because its not working in the moment.
Kind regards
Nicole