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".
Hey Everyone,
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?