- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2017 10:21 AM
setReadOnly is not working in service portal for reference field(catalog client script)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2017 03:17 AM
We had restrict the users based on roles so UI policy is not the flexible , i have 1 more policy on same field.
I got solution for this . they have changed syntax bit
g_form.setReadOnly('variable name', value);
ex: g_form.setReadonly('requested_by', true);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2017 10:29 AM
Hi Mubeena,
Please make sure the UI Type field in the Catalog Client Script is set to All. Please check: Re: catalog client script on Service Portal don't working
I hope this helps.Please mark correct/helpful based on impact
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2017 01:03 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2017 02:54 PM
You can use catalog UI policy without defining catalog condition and check all boxes under "advanced view/when to apply"
Visible = true
Read Only = true
Mandatory = leave alone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2017 03:17 AM
We had restrict the users based on roles so UI policy is not the flexible , i have 1 more policy on same field.
I got solution for this . they have changed syntax bit
g_form.setReadOnly('variable name', value);
ex: g_form.setReadonly('requested_by', true);