- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Experts, our team has a Related List declarative action that opens a new record with some column values auto-populated. Not sure if this is the correct way to do this, but found some community posts showing this particular method:
function onClick() {
g_aw.openRecord('sn_hr_core_corrective_action_noa_cases', -1, {
"query": "u_helpdesk_case=" + g_form.getUniqueValue() + "^u_noa_code=" + g_form.getValue('u_noa_code') + "^u_effective_date=" + g_form.getValue('u_effective_date')
});
}
When logged in as an admin, the form appears as expected. The NOA Code and Effective Date columns are configured to be Read Only:
But when impersonating an end user, the entire form is Read Only:
There are no client scripts, UI policies, ACL's that are causing this. The only thing we can think of is this declarative action, but unsure why this would be happening. Any suggestions?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hey Everyone, I was able to fix it through ACL
There is an acl that refers to this system property: glide.sm.default_mode which is set to deny OOTB and we actually can't change it to "allow". Looks like this property blocks access in the absence of ACL's. Once we created a create ACL for table.*, the form opened up. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
how does the form look when the non-admin opens the table using table.LIST ?
If it's readonly it means Table.None WRITE ACL is blocking.
I could see lot of OOTB Related List Actions using g_aw.openRecord so it should work
Also did you check any custom UI policy or client script is making those fields read-only?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hey Everyone, I was able to fix it through ACL
There is an acl that refers to this system property: glide.sm.default_mode which is set to deny OOTB and we actually can't change it to "allow". Looks like this property blocks access in the absence of ACL's. Once we created a create ACL for table.*, the form opened up. Thanks!