0

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 Answer 1

0

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

1
  • ty @RiveN 4 the edit ill improve the way i answer
    – P.C.
    Commented Jun 2, 2022 at 23:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.