xPages set control value using client javascript

Dear sir/madam,

I have a xpage which containes amongst other things a hidden input component. The value of this component is calculated using client side javascript. There is a data binding between this hidden input and a field on the notes document data source.

When I click the save button I first do a data gathering using client side javascript and return true so the server side can save the document to notes.

The document is saved but for some reason the value which is calculated in the hidden field is not updated and is empty. What could be the cause of this and is it even possible to do such things?

Subject: Set All field unhide

Did you test, with condition before and after hide?Just for test, set your hidden field to unhide.

Subject: Problem is fixed

Hello,

I did that this morning and that worked but would invalidate the xpage design because that information shouldn’t be visible ( only for calculation purposes ). I removed the field and added a new hidden input control and now it works.