%%Surrogate_ gets passed as XML and crashes

The &%¤/& %%surrogate_field phokks up my code.

Have a form where I get 2 of these annoying fields “included” in the webpage. There is an submit button that throws the page to an agent that reads all fields as XML. Everything worked when we ran it on R6.5 but now… no more. Since I can’t see how to remove it… any ideas?

In IE I get the error:

This name may not contain the “%” character:

–>%< – %%Surrogate_Industry

In FF the agent leaves with a break

The XML seen as sent (using httpfox post-data):

sendRFQ…ProdCatContact22222<%%Surrogate_Industry>1</%%Surrogate_Industry>02<%%Surrogate_CustomerFlag>1</%%Surrogate_CustomerFlag>

Subject: %%Surrogate_ gets passed as XML and crashes…

You might change the % into an HTML-code &

Subject: RE: %%Surrogate_ gets passed as XML and crashes…

The problem is more the introduction of unwanted form fields.

It’s ok to rewrite parts of an application when upgrading the server as testing is a part of any upgrade. But it is irritating when you need to rewrite javascript parts for the web to fix new introduced components just for the server is upgraded.

I fixed the JS-code so it skips all beginning with %%.

Just wanted to know if there was any way to “not get the new %%surrogate_fields”

Subject: RE: %%Surrogate_ gets passed as XML and crashes…

No – their absence was a fundamental flaw in Domino before they were introduced since you could not clear select or checkbox fields on a document that had previously been been saved (they are not included in the POST or GET data when they contain no data). The %%Surrogate fields allows Domino to differentiate between fields that were part of the HTML document (the %%Surrogate is published to the browser) and those that were hidden server-side (when a hide-when hides the field, the %%Surrogate is not published either).