Purpose

We recently held our kids' camp and used Rock for the entire check-in process. Our check-in labels were printed wristbands that included the child's security code for pickup, their name, their camp group, and whether or not their registrar signed a media release for them. If we didn't have a media release for the student, an 'X' printed on the wristband, which indicated they needed to be given another generic brightly-colored wristband so everyone knew not to photograph or film those campers. The media release was a registrant attribute, so we had to be able to print that on the wristband!

Setup

We accomplished this with a Lava Shortcode! Here's how you can setup the same code:

  1. Go to Admin Tools > CMS Configuration, then click on Lava Shortcodes
  2. Create new shortcode by clicking the + icon
    • Name: Display Registrant Attribute
    • Tag Name: regattr
    • Tag Type: inline
    • Description: Used to display the value of a registrant attribute when given the instance id, attribute id, and person id.
    • Shortcode Markup: attached as ShortcodeMarkup.lava
    • Parameters:
      • attributeid (no default)

      • instanceid (no default)

      • personid (no default)
    • Enabled Lava Commands: Sql
    • Screen_Shot_2021-07-06_at_4.44.00_PM.png

How To Use It

You need three things in order for this shortcode to work:

  1. Person Id
  2. Attribute Id we want the value of
    • You can find this by editing the registration template, editing a registrant attribute, and finding the id in the top bar of the edit modal.
    • Screen_Shot_2021-07-06_at_4.31.38_PM.png
  3. Registration Instance Id
    • I find this by clicking on the instance from the Event Registration instance list, and then looking in the address bar for the Id.


    You can use this shortcode anywhere, but when using it in check-in here's what it would look like as a check-in merge field (attached as CheckInMergeField.lava)

    Screen_Shot_2021-07-06_at_4.36.45_PM.png

    Keep in mind that the shortcode is returning whatever is stored in the [Value] column on the [AttributeValue] table. This means that depending on the field type of the attribute, you will have to work with the result to get your output. Use the list of field types on this page to know what your expected output will be. In the example above, Attribute Id 9396 is an attribute of type Boolean, so according to the page linked above, its [Value] will contain either True or False.