Question

Photo of Dan Locke

0

Create group member attribute merge field for check-in label

I am creating check-in labels for an evening event. The children that attend are assigned a table for a meal, and I'd like to indicate that on the check-in label. Right now the children attending the event are members of a group, and their table assignment is a group member attribute. Is there a way I can create a merge field to reference that value?

Check-in
  • Photo of Jim Michael

    0

    You should be able to use something like 

    {% for member in GroupMembers %}{{ member | Attribute:'AttributeKey' }}{% endfor %}

    Replace AttributeKey with your own Attribute's key.

  • Photo of Michael Garrison

    0

    I believe Jim's answer assumes that they are checking into the group where the Group Member Attribute is set. Hopefully that's the case.

    If it's not, you may need to do something like 

    {% assign groupMembers = Person | Group:"1234" %}{% for groupMember in groupMembers %}{{ groupMember | Attribute:'AttributeKey' }}{% endfor %}

    (Change 1234 to the ID of the group they're a member of, where the table is set, and change AttributeKey to the actual key of your attribute, just like in Jim's answer.

  • Photo of Dan Locke

    0

    So, what if I have multiple options for groups for check-in? That is, 4th grade checks into the elementary group but 7th grade checks into the youth group. That's two different groups, so how would I format the code?

    I'm still learning how to use Lava/Liquid. I can read it a bit, still can't really write it. Thanks for the help!

    • Michael Garrison

      If you're actually checking into the groups where the attributes are set, give Jim's syntax a shot; it should work for you