Change proposal fields showing read only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2024 10:33 AM
I am working on Standard Change proposal and all the fields are showing read only for users with sn_change_write. It was working in DEV but once moved to testing its showing all fields read only. Are there any other rules that would restrict ? I did not see specific acls that are restricting it. Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2024 06:31 AM
Hi @samadam
Try to give the template editor role to use
Also, it may be reason in your instance only change manager is allowed to create the proposal.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2024 11:37 AM
Hi @samadam ,
The read-only fields for standard changes are set through a client script, "Mark standard change fields readonly". This client script gets the type of change from the form type field. If this field is not part of the change request form, due to some customization on the OOB layouts or due to using a custom layout, the client script is unable to identify the change as being standard and will not apply the standard change definitions:
var chgType = g_form.getValue("type");
var ga;
if (chgType == "standard") {
if (g_form.isNewRecord()){
ga = new GlideAjax('StdChangeUtils');
ga.addParam('sysparm_name', 'ajaxFunction_getReadOnlyFieldsOnInsert');
ga.getXMLAnswer(markReadonly);
} else {
ga = new GlideAjax('StdChangeUtils');
ga.addParam('sysparm_name', 'ajaxFunction_getReadOnlyFields');
ga.addParam('sysparm_sysId', g_form.getUniqueValue());
ga.addParam('sysparm_tableName', 'change_request');
ga.getXMLAnswer(markReadonly);
}
}
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda