Hello,
I'm having issues with this peace of code, it has worked for me before but for reason it will not coorperate this time.
@if (GetString("Item.AfdHellerup") == "True") { <strong>@i.GetValue("ItemPublisher:Item.AfdHellerup.Name")</strong> } @if (GetString("Item.AfdOdense") == "True") { <strong>@i.GetValue("ItemPublisher:Item.AfdOdense.Name")</strong> } @if (GetString("Item.AfdSkorping") == "True") { <strong>@i.GetValue("ItemPublisher:Item.AfdSkorping.Name")</strong> } @if (GetString("Item.AfdAarhus") == "True") { <strong>@i.GetValue("ItemPublisher:Item.AfdAarhus.Name")</strong> } @if (GetString("Item.AfdMR_Aarhus") == "True") { <strong>@i.GetValue("ItemPublisher:Item.AfdMR_Aarhus.Name")</strong> } @if (GetString("Item.AfdViborg") == "True") { <strong>@i.GetValue("ItemPublisher:Item.AfdViborg.Name")</strong> }
It's a simple checkbox field type and I only want the ones that are checked to be shown.
Best wishes,
Roop