Make it filed Non

Rajesh Bandila
Tera Contributor

Hi,

 

I have an Checkbox filed called "Required_Action" in sc_req_item form. The filed gets read-only(noneditable) after tickets gets closed.

 

Now, I want to make it field Editable irrespective of state, If logged InUser is part of the ritm assignment group. I want to achieve this by using beforeQuery business rule. Can you please help me on this with the script?

Thanks In Advance!!

Bandila Rajesh

6 REPLIES 6

Anurag Tripathi
Mega Patron
Mega Patron

Hi Rajesh,

You can t achieve this using Before Query BR. Recommended approach would be Field level ACL or if Client side then UI Policy/Client Script.

 

Query BR might work if you want to hide the entire row (record) based on some condition 

-Anurag

Thanks @Anurag Tripathi 

 

As better practice, I have decided to go with the ACL. Could you please provide the required script here? It will be more helpful.

 

Thanks

Bandila Rajesh

So assuming that the check box is on RITM table

ACL would be 

AnuragTripathi_0-1719501445110.png

 

Use your field name 

 

In the script use below

 

answer = gs.getUser().isMemberOf(current.assignment_group);

 

-Anurag

Thanks @Anurag Tripathi 

 

I have tried the code and it's not working as expected. Could you please assist me to move further? Find the attached screenshot for your reference.

 

RajeshBandila_0-1719509616598.pngRajeshBandila_1-1719509642273.png

 

Thanks,

Bandila Rajesh