Changing document field

HiI have 1 small problem

1 have form with few fields and 1 always hidden field.

1 Have 1 button witch changes this hidden field value.For example hidden field name is “date” and when I press the button i do:

@setField(date ; @Now);

It’s working OK when the document is created but when i show its in view and double click its opening in read mode.And then if I pressing the button value doesn’t change.I have to double click somewhere in document (it gos to write mode) and then its working correctly.

What shuould I do to not go to read mode every time i want to change the date field ?

It is possible to write in OnModeChange to go to write mode only witch some fields ?

Maybe some other idea ?

Thanx

Subject: Form - Automatically enable Edit mode

Could you perhaps set the property of the form to Automatically enable Edit mode ?This way you will always be in Edit mode everytime you open all the documents created with that form.

Subject: RE: Form - Automatically enable Edit mode

I dont want to autoset read mode beacouse other fielda can be changed.Is @function of LotusScript witch changes the document to read mode and afther some operation change it to write mode ?@now is just example i know that it cans be computed.

Maybe i shoud do sth like that

…Onclick(…)

{

1)Go to write mode

2)Modifity field value

3)go to read mode

}

But i have some buttons (like Save or Cancel) witch are hidden in read mode so they will blink for a while.

How change field to back-end class ?

Thx for posts

Subject: changing document field

write script in the button that changes the field in the back-end document.

What is the purpose of this field? Why not just make it a computed for display field with @Now as the formula?