I'm currently working with CDialogTemplate to display a pop-up edit window with Selection Dropdowns. However, I cannot get the template to select an option using the hashdata template.
For example, my template has a select menu defined as:
new CDialogItem(Forms.SelectInputString("SelectedOwner", Forms.SelectOptions(owners, "{selectedOwner}", ownersValue)),
"Owner", "{selectedOwner}")
Then, when adding the template, I set selectedOwner to the value I want selected. The instructions get set to the value, however, the selection box defaults to the first selection.
I suspect it's because the SelectInputString looks for the selected option to be of the given values, and since the param {selectedOwner} isn't a value, it's skipped. Also, how would this even work since a selected item just has selected appended to the option tag. Not really a replace strategy that would work easily here.
Is there a way to do this?