Labor Day Waiver page and form

We had a rush job come into Workfront (#2673027) where we needed to add an event waiver of release and liability to our sports forms, namely volleyball, basketball (“War Hoops”) and softball. This ended up being a fairly complex dev job, but hopefully a relatively simple content job moving forward.

The Base Release Form

Living an unlisted life at https://laborday.choctawnation.com/waiver/, the base release form gets nested into any form that requires it. The form’s first field is a “Drop Down” field with a few special things going on:

  1. Each option is given a custom value—this is for some code to automatically populate the form’s shared values when it’s nested (more on this later)
  2. You can select a default value by passing a URL parameter to the page (e.g. /waiver?event=softball will select “Fast Pitch Softball”).
screenshot of the drop down’s options when “show values” is checked

Shared Fields

Because this form shares a few fields with its parents, there is some extra logic that auto-populates the form fields when it is being used as a nested form. However, in order for this to work, the fields must be configured in similar fashions!

Name (first and last), Phone and Email are the fields that can be auto-populated and they must have autocomplete turned on to work.

Notifications & Admin Emails

A unique feature to this form is the dynamic population of fields from somewhere else. This allows us to set notification emails in one place and use it over and over again throughout gravity forms. The Volleyball, War Hoops, and Softball email fields are marked as “Administrative” and allow us to use ACF field values when sending notification emails.

The Administrative fields that are powered by ACF.

These fields are directly mapped to the ones in Theme Settings -> Form Settings.

For each drop down option, a new Notification must be added. Each notification should be set to conditionally fire only on the selected event, and the email should be configured to pull dynamically from ACF fields.

The Parent Forms

It is worth emphasizing again that the parent forms fields must be set up correctly in order to map to the nested Waiver form.

Name (first and last), Phone and Email are the fields that can be auto-populated and they must have autocomplete turned on to work.

Also, if this is a new sport, auto-population will not work unless you happen to get lucky, so reach out to the dev team to get this up and running. It should work year over year, but if it doesn’t, let the devs know.

See something inaccurate?