Customize Conditional Formatting of a Field

It is possible to display a section on a form based on what you chose in an option selection or checkbox field by using conditional settings. This can be done on your Situation, Personnel, Roles, Status Board, Task Board and Form templates. 

🔑 ACCESS LEVEL: Account Owner

Conditional Settings on an Option Selection Field

  1. Go to the Admin Area
  2. Access Templates
  3. Click on the Situation template
  4. Hover your mouse over the field you will use to trigger a section to appear ('Incident Type' in this example)
  5. Click on ⋮ more options menu and copy the Field ID, you can also click on the double paper icon to copy

  1. Go to the section that you want to trigger to appear on your form if 'Storm' is selected as the incident type
  2. Hover your mouse over the Section title bar and click on ⋮ more options menu
  3. Then select Show based on a condition...

  1. Type the following into the expression box (example):
    1. thisDocument.data.incident_type === 'storm'

  1. Click OK
  2. Once finished click Save
  3. Select Ok to confirm change, or select Cancel to revert the change

ℹ️ NOTE: You can paste in the Field ID you have copied from the field that will trigger the section to appear, in this case incident_type. 'storm' = different_option_id; is the selection that will trigger the section to appear.

  • Expression: thisDocument.data.field_id === 'different_option_id' 
  • Expression to use when more than one selection will trigger the section to appear: thisDocument.data.field_id === 'different_option_id' || thisDocument.data.field_id === 'different_option_id' 
  • || = OR
  • && = AND

Conditional Settings on Built-In Channel Status field

  1. Go to the Admin Area
  2. If you haven't already done so, Configure your Channel Statuses
  3. Locate your channel status ID from the URL (see image)

  1. Access Templates
  2. Click on the Situation template
  3. Go to the section that you want to trigger to appear on your form if 'Level 1 Incident' is selected as the channel status
  4. Hover your mouse over the Section title bar and click on ⋮ more options menu
  5. Then select Show based on a condition...
  6. Type the following into the expression box (example):
    1. thisDocument.channelStatus === 'channel_status_tpl~level_1_incident'
  7. Click OK
  8. Once finished click Save
  9. Select Ok to confirm change, or select Cancel to revert the change

Conditional settings on a Checkbox field

  1. Go to the Admin Area
  2. Access Templates
  3. Click on the Situation template
  4. Hover your mouse over the field you will use to trigger a section to appear ('City Impact' in this example). Click on More Options [⋮] and copy the Field ID (city_impact), you can also click on the double paper icon to copy
  5. You will also need the field label of the option that is checked off in the field. We will use High Impact in this example
  6. Type the following into the expression box (example):
    1. thisDocument.data.city_impact.high_impact === true
  7. Click OK
  8. Once finished click Save
  9. Select Ok to confirm change, or select Cancel to revert the change

ℹ️ NOTE: Field_id will be the field label you copy from the checkbox field. different_option_id will be whatever option is checked in the checkbox field that will trigger the section to appear.

  • Expression: thisDocument.data.field_id.different_option_id === true 
  • Expression to use when more than one selection will trigger the section to appear: thisDocument.data.field_id.different_option_id === true || thisDocument.data.field_id.different_option_id === true 
  • || = OR
  • & = AND
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us