I am making a custom optionItem element and would like to pass a value and an email as the value, like so...<option value="<%: item.ValueAndEmail %>" <%= selectedString %> <%= defaultSelectedString %> data-f-datainput><%: item.Caption %></option>
The problem is, validation does not like this and I get the following message: "Unexpected value is not accepted".
How can I get around this?
Your selected option value submitting to serverside must be one of the pre-configured values in EditMode. Otherwise, the above message is thrown.