cancel
Showing results for 
Search instead for 
Did you mean: 

Pound sign (#) in form field throws exception

Rob_Balyeat
Champ in-the-making
Champ in-the-making

Hello,

FieldList l = document.EForm.Fields;FieldList l = document.EForm.Fields;Example HTML on eform: <input type="text"  VALUE="123456" name="OBKey_Docket_#_1" id="DocketNumber" />

C# : FieldList list = document.EForm.Fields;

System Exception: "The '#' character, hexadecimal value 0x23, cannot be included in a name. Line 1, position 23."

Is this a known issue? If so, does any one know of a work-around?

5 REPLIES 5

Rob_Balyeat
Champ in-the-making
Champ in-the-making

Thanks for the info Scott! Ari suggested the OBKey__ route using the KW ID which in my case will work perfectly. Thanks again for taking the time to guide me in the right direction.