The approach shown below is only compatible with version 2.0 and version 2.1 of the Vault Application Framework, where the target audience runs M-Files 2018 or higher. If using version 1.0, or to maintain compatibility with M-Files 2015.3 and lower, configuration attributes should be used instead.
Some configuration settings are only applicable in specific scenarios, and showing all configuration options to users may not be the most user-friendly. In these situations, configuration options may be shown or hidden depending on the state of other options.
HideWhen configuration both use JSPath syntax to define both the trigger property to test, and the condition which it must meet. More information on the JSPath syntax is available on the JSPath official GitHub repository.
Showing or hiding options depending on configuration state
In the example below, the
AdvancedConfiguration option is hidden by default and only shown when the user sets the
UsesAdvancedConfiguration option to