Set field with javascript

Hi all,I create a text field witch is computed for display (myfield, value=“startvalue”).

Below this I have a button with the script

document.forms[0].myfield.value=“newvalue”.

An other button displays the value of the field with

alert (document.forms[0].myfield.value)

Here I can see, that the scipt which sets the new value works fine, but the form still shows the old value in the field.

How can I achieve, that the new value also is shown correctly there?

thanks

Michael

Subject: set field with javascript

Change the field type to “Editable” and add “readonly” in the html attributes ( so that the value can be edited manually )

cheers !!

Ashish

Subject: RE: set field with javascript

thank you very much, it already works after changing in editable.But where/how can I set the html attribute?

Michael

Subject: RE: set field with javascript

Goto the Field Properties > Last Tab and put readonly in the “Other” section

cheers !!

Ashish