Posted on 12/03/2015 20:59:41
Hi Hans,
When you've got a dropdown there should be a loop for the options in that dropdown. In the loop you can access the label, the value, "IsSelected". (I've used this on a solution running 8.6. Don't know if its there in 8.5.1.19, but I think it is.)
So if you have a dropdown with the system name "Color" you can loop the options somthing like this:
@foreach (var option in GetLoop("Item.Color.Options")) {
@if (option.GetBoolean("Item.Color.Option.IsSelected") {
<div>This is the one! The label is: @option.GetValue("Item.Color.Option.Value")</div>
}
}
Hope it works on 8.5.1.19 :-)