Computed fields on a form saved via web are lost

I’m working with a form on web.The looks on a different db to get some identifying fields for the current user (agent number code, partner name, type, etc). Those fields are COMPUTED, and are displayed correctly.

The user fills some other fields and saves/sends it.

The is just displaying a print-result.

The form is saved, no errors.

BUT… looking at the content of the saved document, ONLY the values of those computed fields are LOST!! and they are crucial.

If those fields are EDITABLE they are perfectly kept, but in this application they must not be modified.

I haven’t found a way to keep them.

Any help please…

Subject: Computed fields on a form saved via web are lost

Mmm… thanks… but… the fields I’m refering to, are COMPUTED and “viewable”, they’re NOT hidden.The authenticated user can look at them.

The problem is that when the form is saved, only those are lost (even with the marked).

Thanks.

Subject: RE: Computed fields on a form saved via web are lost

Odd. Have you looked at the HTML source for the document when you use “Generate HTML for all fields”?

Subject: Solved… Computed fields via web are lost

I haven’t have needed or dealed with this before, but for this case, the solution was simply to add:

On those computed fields… field-properties… html folder… html tags section… fill the {Id} with the name of the field.

So their values are preserved when the doc is saved.

Subject: Computed fields on a form saved via web are lost

And if those fields are hidden with hide-whens and you aren’t using “Generate HTML for all fields” the values you put into them in your WQO will not be submitted to the server. Keep inmind that HTTP is stateless – Domino doesn’t remember what it did when it served the page; all it has to go on is the previously saved version of the document (if there is one) and what the browser submits.

If you don’t want to use “Generate HTML for all fields”, then use editable fields but put “type="hidden"” in the HTML Attributes for the fields.