Show/hide named content control

Modified on Mon, 5 Oct at 1:52 PM

Just as we are able to control the visibility of content in a content control and content controls with no title, we are now able to show or hide a named content control.

Module is located here:

Code
...\ModuleLibrary\BaseExtensions\04_nocontext_MISC\16_W_showHideNamedCC.xml

CMD

<Cmd case="BaseExtensions:show-hide-named-cc" name="x"/>

Parameters

name

Define the name of the content control(s).

visible

Define whether the command should show or hide the specified content control using true or false. This parameter can be omitted, and thus the command will instead toggle the visibility of the content control.

fullyHide

Optional. Define to true for fully hiding a cc. This is useful in scenarios where there is a line break right after the content control, and that has to be hidden as well. If omitted, it will default to false.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article