In Customer service , if the state is cancelled , make everything readonly by client script.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @prastuti ,
Make one client script on-change :
As a result on incident form states will be read only :
Code :
if (g_form.getValue('state') == '8') {
var fields = g_form.getEditableFields();
for (var i = 0; i < fields.length; i++) {
g_form.setReadOnly(fields[i], true);
g_form.addInfoMessage('State cancelled fields are read only');
}
}
If my response helped mark as helpful and accept the solution.
