MMXII Posted October 26, 2019 Share Posted October 26, 2019 Yeah, stupid title, I know, but here is my problem: In Pages, I have a database with a custom field (checkbox). Now I want to display a badge in the listing template based on whether the checkbox has been checked or not. What is the correct code? {{if $value == Checked}}<span class='ipsBadge ipsPos_right ipsBadge_neutral'>Checked</span>{{endif}} I am struggling with the orange part. Link to comment Share on other sites More sharing options...
Sonya* Posted October 26, 2019 Share Posted October 26, 2019 {{if $formValue == 1}}<span class='ipsBadge ipsPos_right ipsBadge_neutral'>Checked</span>{{endif}} Link to comment Share on other sites More sharing options...
MMXII Posted October 26, 2019 Author Share Posted October 26, 2019 Exactly what I was looking for. Thank you very much for your help! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.