how to overcome "Unexpected value is not accepted" validation on form submission

Vote:
 

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?

#203480
Edited, Apr 24, 2019 17:23
Vote:
 

Hi,

Your selected option value submitting to serverside must be one of the pre-configured values in EditMode. Otherwise, the above message is thrown.

#203521
Apr 26, 2019 5:54
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.