- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 09:53 AM
Hello, I have an issue with the "Assign to" field in the alm_hardware table. I'm unable to make it Read Only after a flag is activated. I've tried creating both a Client Script, a Business Rule, and a UI policy, but the field remains editable. I can't seem to figure out why. I'm attaching the screenshots below. Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2023 04:56 AM
Hello @Dario_C ,
As I can see you are using onChange client script, Please use OnLoad client script and use below script-
g_form.setMandatory('assigned_to',false);
g_form.setReadOnly('assigned_to',true);
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 10:00 AM
Hi @Dario_C ,
By any chance is the assign to field mandatory.If yes pls first make it non mandatory then make it read only
Like in ur script u can just add one more line before setting it as Read only.
g_form.setMandatory('assign_to',false);
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 10:03 AM
Also did u try putting an alert in your client script so that we can understand whether the script was getting called or not
Thanks,
Danish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 11:12 AM
@Dario_C Please check if the assigned_to field is mandatory on your form. If it is a Mandatory field, then it cannot be set to ReadOnly. You would need to make it non mandatory first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2023 03:08 AM