We needed a special tag print for certain kiddos with life-threatening medical conditions. We needed more space than was available on the name tag to print some instructions for volunteers in the event of an emergency. We created a conditional tag that is called a medical tag that will print out for those kiddos that the volunteers get on sundays when the kid arrives to the room.

This conditional tag idea could be used for any situation where you need an extra tag printed for specific kids or specific situations. 

Here is how to do it! 

1) Create a new Label Merge Field with the Label ZPL and some conditional Lava: 

*This lava says "If the person has a value in the Medical Notes attribute, print this tag." You can change that lava to test for a value in any attribute.

^FS
{% assign medical = Person | Attribute:'MedicalNotes' %}
{%if medical != empty %}
CT~~CD,~CC^~CT~
^XA~TA000~JSN^LT0^MNW^MTD^PON^PMN^LH0,0^JMA^PR6,6~SD24^LRN^CI28^XZ
^XA
^MMT
^PW812
^LL0406
^LS0
^FT150,70^A0N,50,50^FH\^FDMEDICAL^FS
^FT150,150^A0N,30,30^FH\^FD {{Person.NickName}} {{Person.LastName}}^FS
^FT150,200^A0N,28,28^FH\^FDMedical Notes:^FS
^FT150,340^A0N,24,24,^FB500,5,0,L,^FH\^FD{{medical}}^FS
^FT250,380^A0N,23,24^FH\^FDAllergy: {{Person | Attribute:'Allergy'}}^FS
^LRY^FO0,0^GB812,0,100^FS^LRN
^PQ1,0,1,Y^XZ
{%endif%}
^FD

2) Add this to the very bottom of an exisiting Check in label that prints for everyone(Ex: the Name Tag): ^FDMedical^FS


3) Add 'Medical' to the list of merge fields, and select the label merge field you created in step 1!

Screen_Shot_2022-04-20_at_1.27.20_PM.png


4) Then hit save! 

The next time a kid checks-in this is what will print: 

image0.png