- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-08-2017 05:19 AM
I'm trying to make a field read only for a user with a specific role.
In the script associated with the UI Policy I have
function onCondition() {
gs.hasRole(x_9004_invoice_que.mgr);
}
We only have one user with this role however it is making the field read only for all users
Appreciate any assistance with this
Solved! Go to Solution.
- Labels:
-
Instance Configuration

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-08-2017 05:25 AM
Create a ACL to make the field readonly. It also restricts list view.
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-08-2017 05:25 AM
Create a ACL to make the field readonly. It also restricts list view.
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2017 01:31 AM
Was hoping to make it a bit simpler but that was the right answer.
Many thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-08-2017 05:25 AM
Hello Angus,
is not a best practice but why u don't do a cliente script that with a if condition on role set fiel read only :
if(gs.hasRole(x_9004_invoice_que.mgr)==true){ g_form.setReadOnly(fieldName, true)};
Sergio
Hit Correct , Helpful etcetc...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-08-2017 05:26 AM
Hi Agnus,
You can try with below script
if(g_user.hasRole('x_9004_invoice_que.mgr')){
g_form.setReadOnly('field_name',true);
}
Please mark correct/helpful based on the impact of the response.
Thanks
Gaurav