I want to set Approval state in list view and form level as read only if state is approved, rejected, cancelled or no longer required but my configuration is not working

Harsha Pandey
Tera Expert

Hi,

I want to set the state of Approval as read only if state is approved, rejected, cancelled or no longer required at both list and form level.
I have made state read only at form level for above states using UI policy on onload. But I am not able to make it read only on list view.
I tried with list_edit ACL on sysapproval_approver table with above conditions but it makes the state field read only at all conditions as if it is ignoring my conditions.

Tried with oncellEdit client script as well but no luck.

@Ankur Bawiskar  @Chetan Mahajan could you please help me in this!!!!!!!!!! Below are my screenshots for reference.

find_real_file.png

find_real_file.png

find_real_file.png

1 ACCEPTED SOLUTION

Hi,

you should not use &&

you should use those as individual line of codes.

regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

in the ACL you should use State = Requested since you want edit to happen when only state is not approved, rejected, cancelled or no longer

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur, 

Thanks a lot for your immediate help. I modified the ACL and it worked . Can you please suggest if at form level using UI policy in this case is good or not?

Thanks,

 

Hi,

If you could please suggest this as why my script is not working where I want that if the state is more information required, then only approved and rejected should be visible.

find_real_file.png

Hi,

you should not use &&

you should use those as individual line of codes.

regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader