hcl-bot
February 10, 2005, 5:31am
1
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?
hcl-bot
February 10, 2005, 6:00am
2
Subject: Get value in Java Script.Why it doesn’t work ?
On the form properties second tab, select the Generate HTML for all fields
hcl-bot
February 10, 2005, 6:05am
3
Subject: RE: Get value in Java Script.Why it doesn’t work ?
Thx, Marco!It work very well :).
hcl-bot
February 10, 2005, 5:50am
4
Subject: Get value in Java Script.Why it doesn’t work ?
The link is a Action Hotspot?
hcl-bot
February 10, 2005, 5:51am
5
Subject: RE: Get value in Java Script.Why it doesn’t work ?
Yes, it’s action hot spot.
hcl-bot
February 10, 2005, 5:54am
6
Subject: RE: Get value in Java Script.Why it doesn’t work ?
Javascript is Case Sensitive, the field name is correct?
hcl-bot
February 10, 2005, 5:57am
7
Subject: RE: Get value in Java Script.Why it doesn’t work ?
yes, the name filed is correct. i copied it.
hcl-bot
February 10, 2005, 6:07am
8
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
hcl-bot
February 10, 2005, 6:05am
9
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
hcl-bot
February 10, 2005, 5:37am
10
Subject: Get value in Java Script.Why it doesn’t work ?
Is the field hidden from web browser…
hcl-bot
February 10, 2005, 5:41am
11
Subject: RE: Get value in Java Script.Why it doesn’t work ?
No, at this moment this field is shown.