Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Code in question:
switch (propertyControl.GetType().ToString())
{
case "umbraco.editorControls.dropdown":
((umbraco.editorControls.dropdown)propertyControl).SelectedValue = propertyValue;
break;
}
I have confirmed that propertyValue is a value within the dropdown but after this statement is run, the SelectedValue doesn't appear to be set and isn't set in the HTML dropdown output at the end.
Any suggestions? Am I doing something wrong?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
editorControls.SelectedValue doesn't set the selected value?
Code in question:
switch (propertyControl.GetType().ToString())
{
case "umbraco.editorControls.dropdown":
((umbraco.editorControls.dropdown)propertyControl).SelectedValue = propertyValue;
break;
}
I have confirmed that propertyValue is a value within the dropdown but after this statement is run, the SelectedValue doesn't appear to be set and isn't set in the HTML dropdown output at the end.
Any suggestions? Am I doing something wrong?
is working on a reply...