To Make Fields Read-only on change request form

Vaishnavi35
Tera Guru

Hi,

These are stages in my project instance

find_real_file.png

After Platform Manager has approved- I want Justification, Risk and impact analysis, Backout plan, Test plan, Validate and Communicate Plan, and Implementation plan (on Schedule tab)  fields to be read-only.

Thanks,

Vaishnavi

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

And here an example to start off with, in this case the Backout Plan field. An Access Control like I mentioned.

Again, don't go for Client Side scripting like UI Policy or Client Script. That's absolutely NOT secure!!!

find_real_file.png

Now it's just a matter to add which State this concerns. Or maybe light scripted logic. For example I don't know what you exactly mean with a Platform Manager approver. Is that a State? Is that an actual User Approval? Etc.. Maybe you also want to restrict this to certain roles?

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

5 REPLIES 5

Mark Roethof
Tera Patron
Tera Patron

Hi there,

You should be able to achieve this through ACL's in combination with the state. Have you had a look at that?
Add ACL's for your_table.justification, your_table.backout_plan, etc..

You could also achieve this with Client Side scripting. To be aware, easy to setup, though absolutely not secure

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Jaspal Singh
Mega Patron
Mega Patron

Hi Vaishanvi,

 

There are many options UI Policies, Client Scripts & ACLs (most preferred).

In your case if there would a state or any other field value that would never be repeated once Platform Manager approves then a simple UI Policy or Client Script would be good enough where you specify State is not Something & then field should be read-only.

Mark Roethof
Tera Patron
Tera Patron

And here an example to start off with, in this case the Backout Plan field. An Access Control like I mentioned.

Again, don't go for Client Side scripting like UI Policy or Client Script. That's absolutely NOT secure!!!

find_real_file.png

Now it's just a matter to add which State this concerns. Or maybe light scripted logic. For example I don't know what you exactly mean with a Platform Manager approver. Is that a State? Is that an actual User Approval? Etc.. Maybe you also want to restrict this to certain roles?

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hi Mark,

after Business approval state i mean from the above pic of stages. i have two approval stages of a manager after assess state and then again after build & test stage. 

I think ACL would be a much better option.

Thank you.