You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 29, 2020. It is now read-only.
Came across this exact issue today and here's a workaround.
@usingNewtonsoft.Json.Linq;// Need to add namespace
...
var selectedOption = JArray.Parse(item.GetValue<string>("option"));varoptionAsIntArray= selectedOption.Values<int>();// Cast to int arrayvarselectedValue= Umbraco.GetPreValueAsString(optionAsIntArray.FirstOrDefault());
Hopefully it'll help.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
How can I get dropdown value from an Umbraco.DropDown.Flexible datatype?
GetValue() does not working
GetValue() return [ "123" ] <- the number is there just what is it inside json or array of string?
The text was updated successfully, but these errors were encountered: