Field Rules

Form Master 2008 supports conditional field display rules. For example in a Form where we have a DropDown List of Regions populated with US States and Canadian Provinces, is a User is not from one of these countries, we should provide a option in the DropDown List for "Other", and a TextBox where the user can fill in a Region. Field Rules will allow us to show the Other Region TextBox if the value of the DropDown List is "other" and hide it when it is not. Below is the Field Rules page.

  • When Source Field: The Field for which the Value will cause other Fields to be shown or hidden. This Dropdown List contains the defined form Fields excluding incompatible types such as Hidden, File Upload, Button, and Label Fields.
  • Contains/Is: For Checkboxes the default show value is "Checked". All other field types, the show value will be Contains. A Partial value will be matched for example:
    • A DropDown List of Regions contains "Other Region" and a TextBox should be shown when the user selects that value. If "Other" is entered into the Contains TextBox it will match the DropDown value.
    • The Contains TextBox can also contain a wildcard of *.* which will match any value Target Fields. This works for any type of Source Field.
  • Show Target Fields(s): Select One or More Fields to Show when the Rule is True
  • Existing Rules: The grid shows existing rules for this form.
The Grid Columns:
  • Source Field: The Form Field which Triggers the Rule
  • Contains/Is: The Value which the Source Field must Contain, or for Checkboxes be Checked to Trigger the Rule
  • The Grid Columns: The list of Fields which will be shown when the Rule Condition is True.

The Process:

  1. Select a Source Field from the "When Source Field:"
  2. Enter a value which the Source Field must contain to Trigger the Rule. For Source Field of type Checkbox the value defaults to Checked
  3. Select one or more fields to be the target of the Rule in the "Show Target Field(s)" Checkbox List
  4. Click the "Add Rule" button 

Field Rule In Action: Not Triggered

 

Field Rule In Action: Triggered 

 


See also