ListView template for toggle
# help-with-umbraco
c
Umb 10.6.1 I would have thought that if I had a toggle property alias of "approved" and I wanted to show "Approved" or "----" then the template would be {{ approved == 1 ? 'Approved" : '----' }}. Am I wrong? Please put me right if I am 😦 (I've also tried double quotes, but they don't work either)
If I just put {{ value }} then it shows 1 for on and nothing for off. I've tried approved == 1 and approved =="1" and approved =='1' but don't get a hit. And have replaced 1 with true and on. Does it cache this stuff agressively I wonder?
And the answer is ....... {{ value == 1 ? "Approved" : "----" }} 🤦‍♂️
6 Views