Change proposal fields showing read only

samadam
Kilo Sage

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?

6 REPLIES 6

Hi @samadam 

 

Try to give the template editor role to use

 

AGLearnNGrow_0-1709649091104.png

 

 

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]

****************************************************************************************************************

Sumanth16
Kilo Patron

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