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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.