Problem with setting Read Only an field form on alm_hardware table

Dario_C
Mega Sage

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.

 

1 ACCEPTED SOLUTION

Harsh_Deep
Giga Sage
Giga Sage

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.

View solution in original post

6 REPLIES 6

Hi @Dario_C ,

 

Happy to help 🙂

 

Also if the response helped you could u please mark both the response as solutions accepted, as it will help other users to find the right answer.

 

Thanks,

Danish

 

Harsh_Deep
Giga Sage
Giga Sage

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.