Get value in Java Script.Why it doesn't work?

I have form, which i fill on web. I save this document, it’s ok. When i open created document, i have link. If i click link, it make code:alert(“START”);

var thisForm = document.forms[0];

var vfield = thisForm.uind.value;

alert(“vfield=”+vfield);

Field uind is text and edit. If i click link, display first alert (START), than it doesn’t display second window. It doesn’t get value form uind filed. Why?

Subject: Get value in Java Script.Why it doesn’t work ?

On the form properties second tab, select the Generate HTML for all fields

Subject: RE: Get value in Java Script.Why it doesn’t work ?

Thx, Marco!It work very well :).

Subject: Get value in Java Script.Why it doesn’t work ?

The link is a Action Hotspot?

Subject: RE: Get value in Java Script.Why it doesn’t work ?

Yes, it’s action hot spot.

Subject: RE: Get value in Java Script.Why it doesn’t work ?

Javascript is Case Sensitive, the field name is correct?

Subject: RE: Get value in Java Script.Why it doesn’t work ?

yes, the name filed is correct. i copied it.

Subject: RE: Get value in Java Script.Why it doesn’t work ?

Also check if for your hotspot you had selected web on your Run option

Subject: RE: Get value in Java Script.Why it doesn’t work ?

On the form properties second tab, select the Generate HTML for all fields

add a image and call code on image onclick event

Subject: Get value in Java Script.Why it doesn’t work ?

Is the field hidden from web browser…

Subject: RE: Get value in Java Script.Why it doesn’t work ?

No, at this moment this field is shown.