Javascript

Hi here is a little piece of code from my agent

Print

||

In the last line I am trying to set the value of a field BrjRnlg that is on my form! It wont work

And here is the code from a javascript button on the form

var x;

x= prompt(“Unesi Broj Radnog naloga”);

window.document.Main.BrjRnlg.value=x

It doesnt work either

When i use ContextDocument then i only get Form Proccessed!

Basicaly I just want to use the variable x from javascript in my Lotusscript code but i dont know how to do this

Please help me

Subject: Javascript

for setting a value to the field the code should be

window.document.forms[0].fieldname.value=" "