0 Liquid Badge for Background checks 2 DJ Grick posted 9 Years Ago I have been messing with a liquid badge trying to add a thumbs up if someone has a valid child abuse clearance but for some reason no matter what i do I get the same results for everyone. Where did i go wrong? {% if {Person | Attribute:'BackgroundCheckResults'} == 'Pass' -%} <div class="badge badge-Child-Worker" data-original-title="{{ Person.NickName }} has a child abuse clearance on file from {{ Person | Attribute:'BackgroundCheckDate' }}."> <i class="badge-icon fa fa-thumbs-o-up"></i> </div> {% endif -%}
DJ Grick 9 years ago I wish I could say that worked...but it didn't. Using this returned nothing. There has to be something else I am missing. I have made several other liquid badges and never had an issue.
DJ Grick 9 years ago Turns out I didn't need an s at the end of "BackgroundCheckResult". Thanks for the help!
DJ Grick 9 years ago Is this working for you? I had read in the debug badge info that background checks needed called for with { Person | Attribute:"BackgroundCheckDate' } I had tried just using Person.BackgroundCheckResults but it never worked. It returned that everyone passed.Also I didn't just want to search off date of the check because we WILL have people fail, but the badge won't know they failed.
DJ Grick 9 years ago Sorry I just saw that you had mentioned you need to update the way you access attributes. Let me know if you get it working. Also I like that you humanize the date. I always forget about that cool feature.