Options filter: Filtering in forms
Last updated
Was this helpful?
Last updated
Was this helpful?
Modifying a form using the options filter will work for both parent and child organizations, as long as data formatting is set up the same way for both organizations.
Add as many conditions as desired.
Access the options filter feature in our standard form builder. Currently, it only applies to our dropdown element. If you’d like to see this feature expand to include other elements, send us feedback in our .
Say you offer 10 different types of licenses, but your users only ever use a single Business Premium type. Filtering down to just that license would simplify the list, and leave no room for error.
Filter out admins from a total list of users, to create a cleaner list for copying into user onboarding.
When offboarding a user, you may want to exclude a list of specific people to prevent accidental offboarding of key individuals, like the CEO.
Hide on.microsoft email domains that are purely administrative, to provide a cleaner list.
You work at an MSP and are building a license request form for technicians. Your customer, XYZ Corp, only purchases Microsoft 365 Business Premium licenses, not E3, E1, or other license types. To prevent techs from accidentally selecting the wrong license type, which would lead to support tickets and billing issues, you want the drop-down in your form to only show Business Premium.
In the dialog, you’ll see two submenus: Dropdown Options and Options Filter.
The All Options drop-down selector holds all of the options which you’ve set in the standard form builder right side menu. Adding more options in that menu will populate those options into your drop-down selector.
The Filtered Options drop-down selector holds a list of your selected options after applying the filter. It acts as a preview for what to expect from your filtering.
If a drop-down uses a custom options filter, there will be a badge indicator in the top right of the drop-down field.
Toggle from the default Simple view to the JSON view. This will switch to show the code of the filter. You may have a scenario where your desired filter is more complex than just label and value, such as ID. Using this code editor, filter out custom objects from complex queries.
If you manage many organizations, use Jinja in options filters to scale filtering logic without manually configuring filters for every suborganization. When simple boolean logic operators feel limiting, go straight to Jinja for greater customization.
The options filter works off of two boolean operators, which are used to build queries for a variety of filtering situations.
AND sets that all conditions must be true to be filtered into the returned result. E.g., Red AND white would count only items with both those characteristics.
OR sets that either of several conditions can be true to be filtered into the return result E.g., Red OR white would count items with either of those characteristics.
Click X to the right of any added rule or group to delete it from your options filter list.
Clicking +Rule adds a filter field, which is customizable by a list of parameters. Choose from either $.value or $.label, then choose from the long drop-down list of conditions. E.g., $.value equals 15
would filter all results with a value of exactly 15.
In Boolean logic, a group refers to a set of terms or expressions that are treated as a single unit by using parentheses, allowing you to perform Boolean operations on them together. Essentially, it defines the order of operations by grouping certain elements within a complex logical statement.
When you want to combine multiple Boolean operations in a specific way, you enclose them within parentheses to indicate that these operations should be calculated first.
By grouping terms, you can control the order in which Boolean operators like AND and OR are applied. Use the +Group button to define your conditions more precisely. For example:
Without grouping, A OR B AND C would be evaluated as: A OR (B AND C) due to precedence rules
With grouping, (A OR B) AND C forces OR to be evaluated before AND.
Create a new form by navigating to Automations > Forms > + Add.
Name your form, and click Submit.
Drag a Dropdown element onto the form builder canvas. Remember, options filter is currently only available for this element of the form builder.
Click on the element to open the right side menu.
Click on Filter Options. This will open the Create Option Filters dialog.
Set up your desired filters using the AND and OR options, with relevant use of the +Rule and +Group buttons.
Click apply filter at the bottom right of your screen.
Click Close when finished. The option filter will automatically save and be applied to your form. Note that you’ll still need to click Save at the top right of your form builder screen to update these changes within your form.
The greatest advantage of the options filter is that it allows for the overriding of a form. Synchronized forms will block you from modifying attributes to prevent sync malfunction, by default. Under filter options in the form builder, you’ll find an Override button at the bottom right. Clicking will override this individual filter. Note that if you have multiple filters, and want to modify all of them, you’ll need to click Override for each filter.
Use the org context drop-down selector to choose the suborganization that you'd like to preview, and see how the form will function for that specific organization. Previews don't require cloning, and won't affect the saved form configurations except for the options filter. The options generator will display data as if the form were triggered in just that specific organization. The default-set options filter will be used if no custom filters were provided for the selected organization.
Click the drop-down selector to view and chose from your list of all total organizations.
Selecting the preview organization sets the context of the form builder. and opening the preview dialog will use that organization's context to generate the correct preview, tailoring filtering logic for each instance without duplicating forms or unsyncing fields.