Using conditional fields

 

Award Force supports conditional fields. This is a powerful feature which allows a fields to be hidden or visible based on the value of another field.

This is useful when you want to display a subset of values based on a selection somewhere else. For example, you may have one field with regions around the world and would like another field to display a subset of countries based on the chosen region. 

conditionalfields.gif

To set up the conditional field:

  1. Go to Settings > Fields
  2. Go into an existing field or configure a new field
  3. Check the box next to This field is displayed based on the value of another field

You can choose to show or hide the field. In my example, the country selector for the EU region has these settings:

conditional.png

 

If the conditional field is based on the Country field type, you'll need to use the two-letter country code as a reference. For example, Australia is AU, The UK is GB, and Canada is CA. A full list of two-letter country guides is available here.

 

Using a checkbox to show/hide additional fields

Another use for conditional fields is to enable entrants to provide more information. For example, you might want to include a checkbox field asking whether entrants would like to add referees to their application. If this is checked additional fields appear for referee name and email address. These additional fields can be required. 

conditional2.gif

In this example the Referee email and Referee name will have the following settings for the conditional:

conditional2.png

A checkbox can be either 0 or 1. If it's unchecked the value is 0. If it's checked the value is 1. 

Using conditional fields to calculate how many upload fields to display

Another example for conditional fields is using a numbered drop-down menu to determine how many file upload fields to display. 

conditional3.gif

To get this to work you'll need to use the is any of condition. Here are my settings for the 4th file upload field:

conditional4.png

The setting for the 2nd upload field looks like this:

upload2.png