Category: Widgets
Subcategory: Display widgets


This widget will hide or show its parent element, based on the result of a microflow or nanoflow returning a Boolean such that more complex visibility conditions can be composed.


Demo url



By default, Mendix allows to make elements conditionally visible based on a boolean value within the attribute. This widget allows for much more functionality, by enabling the connection of a Microflow.

Typical usage scenario

  • Show a container with associated objects only when there are associated objects.
  • Show a field based on the status of a related object.

Features and limitations

  • Show a parent element based on a boolean value resulting from any Microflow.
  • Only works within elements that should be displayed as a 'block'.
  • Hide an element by classname, based on a boolean value resulting from any Microflow.


  1. Create a microflow that has the Context Entity as input parameter.
  2. End the microflow with a boolean value, which determines whether an element should be shown (true) or not (false). 3.a. Add the widget inside the element that you want to show or hide. This element can of course contain more sub-elements. 3.b. Add the widget next to the element that you want to show or hide. Configure this element's class in the widget, to hide based on the microflow outcome.


Version: 1.4.0
Framework Version: 7.14.1
Release Notes: Ability to call nanoflows from the widget.
Version: 1.3.1
Framework Version: 6.10.9
Release Notes: fix for Mx7.14.1 wrf debugging messages in browser console
Version: 1.3.0
Framework Version: 6.10.9
Release Notes: In the modeler, you can now hide elements inside the parent on true or false by providing their classname. This does require add the class 'hiddenByWidget' to your CSS. The stylesheet should hide the element when this class is applied. The result of this should be that you often only have to include the ShowByCondition once instead of twice.
Version: 1.2.1
Framework Version: 6.10.4
Release Notes: In a previous version, the conditionally visible container was never hidden during a refresh. This has now been fixed.
Version: 1.2
Framework Version: 6.0.1
Release Notes: Added two functions: resetSubscriptions and updateRendering. The widget now refreshes on every refresh of your entity.