How to hide a chart in a section

35 Views Asked by At

I have a chart element in a section on my form, I need to hide the chart according to some rules, I know the way to hide a tab or a section but If I want to show/hide chart element according to it's unique name what is the xrm\Js syntax ?

1

There are 1 best solutions below

1
P.C. On BEST ANSWER

If you see something similar to this on a form:

chart on form

It's nothing more than a subgrid set as a chart:

subgrid as chart properties

If I get your situation you just need to implement the logics and execute "form context or xrm.page or whatever you use + .getControl("Subgrid_unique_name").setVisible(false/or/true);"

Where false hide and true shows