How to add a filter to an Activate Select Control
How to Add a Filter to an Activate Select Control
When creating a web form that contains a select object control like SelectRole, SelectResource etc, you may want to filter certain objects out of the list. For example, in a Create User web form you may want to exclude certain user types role from being available to select. This can be done by setting the Filter property on the control.
This can be done on any Activate select control that inherits from SelectProvisioningObjectBase, which includes the following control types:
- SelectRole
- SelectResource
- SelectFolder
- SelectTask
- SelectDL
- etc.
Steps
To set up the filter, within the properties of the control add a reference to the parameter that you are using to control the filter, e.g. @=/HideFromCreateUser

Note: Depending on your version of Activate (prior to V7), this property may not be available in the Activate Administrator webform interface. If it is not available you will need to switch to Text Mode to set it

The filter allows you to remove objects that would otherwise display in the list.
The example above would remove a User Type from the Create User webform where the User Type role has a parameter called "HideFromCreateUser" set to "true".
Note: You will need to make sure the reference starts with the @ symbol. Without this the expression will be evaluated before it is valid and will not work.