Related list is not visible in onload client script

RiyazAhamed
Tera Contributor

Hello,

I am doing a task where depends on a field value I need to Hide/Show a related list in 'GRC: Policy and Compliance Management'

 

Functionality is already available in client scripts, OnLoad and OnChange client scripts.

I just added one more condition in the scripts. In DEV both are working fine. But in QA Onload functionality is not working.

The client script names are "Source management on load" and "Source management on change". 

 

On Change the Related list is visible after saving the record the related list is not visible/hidden. It is only in QA not in DEV.

 

I have verified the plugin version is same in both the instance.

 

Additional info: I am able to reproduce the issue in my PDI.

I added an OR condition in the client script 'Source management on load'  and facing the issue.

RiyazAhamed_0-1753418519248.png

 

 

Thanks,

 

16 REPLIES 16

palanikumar
Mega Sage

Hi

Is the value of Policy is blank on load? What are you trying to achieve by adding that condition?

Thank you,
Palani

Hi Palani,
 
I am checking if the field(policy) value is not empty then I need to show the Related list(Impacted control).

Hi @RiyazAhamed  Can you if check where the control is going in the if part or else part and then check the values of the fields you are checking in your if statement.

Please mark correct/helpful if my response helped you.

Hi @Anubhav24 the control is going inside the if part.