Hidden Fields access by JavaScript

Not able to access a field in WEB by JavaScript where the same was working in R5.DataBase Property

“Use JavaScript when generating pages”

and

“Generate HTML for all fields” is selected in the Form Properties box.

Field is hidden for WEB.

I can use “display:none” but it occupy some space and make the window to scrool down which should be avoided

Thanks in advance

Regards

S Ranjan

Subject: Hidden Fields access by JavaScript

Depending on where you are trying to access the field… if you are trying to access it as the page loads, then it won’t be available because the hidden fields are at the bottom of the page and load up last.

You can use “visibility:hidden” in place of “display:none”…

Hope that helps…

Subject: RE: Hidden Fields access by JavaScript

Just a note here – visibility: hidden reserves space for the hidden element, display: none does not. If you are getting some space where a display: none element lives, there’s something else causing it. With Domino, I’d suspect a
or

tag generated by a new line on the form/page.

Subject: RE: Hidden Fields access by JavaScript

Thanks for the clarification Stan. At the time I posted, I couldn’t remember which reserved spacing and which didn’t so I left that bit off in case I got it wrong!