Skip to main content

I have an InfoPath form that uses a SmartObject update method, using a few text fields in the InfoPath form. One of the fields is for a URL, and when I put an ampersand (&) in the text field, e.g.


http://server/file.aspx?val1=x&val2=y


the ampersand gets replaced with the encoded value of & ---


http://server/file.aspx?val1=x&val2=y


Is there any way to prevent this from happening?  Note I am using the Dynamic SQL Service broker (not SmartBox).

Are you sure it's not InfoPath that's doing it?  InfoPath stores all of the data you enter in an XML document.  Certain symbols like ampersands have special meaning in XML and must be esacaped before they can be inserted into the document. 
Well, I'm only using InfoPath for the UI and calling the Update method of my SmartObject when I tab out of the text field.  I'm not actually storing any data in XML, only updating the SmartObject. It seems to me the problem lies in the web service or the SmartObject somewhere....
Have u resolved this error,,the infopath uses xml encode for special characters and that causes this problem..Please let me know if you have resolved this error
It's been a long time, but I believe I ended up doing something different.  We didn't do much with this particular project, so I don't remember what approach we ended up taking.

Reply