Get DropDown value ID from the string - GetPreValuesCollectionByDataTypeId?
Hi,
I have a form with a drop down list built from an Umbraco drop down data type list. I want to use the ContentService .SetValue to set the value that the user selected in the content node so I think I need the internal prevalue ID of the value in the drop down.
I've inherited this project - I've just recreated the datatype and the newer version seems to be storing values as a Dictionary rather than an array? What could have caused this?
Get DropDown value ID from the string - GetPreValuesCollectionByDataTypeId?
Hi,
I have a form with a drop down list built from an Umbraco drop down data type list. I want to use the ContentService .SetValue to set the value that the user selected in the content node so I think I need the internal prevalue ID of the value in the drop down.
newPartnerNode.SetValue("businessSector", businessSectorId);
So how do I get the internal ID required to set the value?
I've tried something like:
I've inherited this project - I've just recreated the datatype and the newer version seems to be storing values as a Dictionary rather than an array? What could have caused this?
is working on a reply...