Hi,
A question here, we have created an item, which uses another item (Buttonlink) as a field:
This item is a ItemViewModel in my template (Dynamicweb.Frontend.ItemViewModel).
The ItemViewModel has a Field "Target" (Dynamicweb.Frontend.ItemFieldViewModel).
This Field is a Dropdown list in the backend:
I can get the Field value with:
Model.Item.GetItem("ButtonLink").GetField("Target").GetValue()
This gives me the Label value (Nieuw tabblad) of the item in the dropdown list:
What I need is the value of the Value field (_blank), but I cant figure out how to get this value.
Can you help me out here?
Greetings Harald