The moose likes HTML, CSS and JavaScript and the fly likes Hidden fields Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Hidden fields" Watch "Hidden fields" New topic

Hidden fields

Krish Khan
Ranch Hand

Joined: Dec 14, 2009
Posts: 46
Hey All,

I need to understand with hidden fields.

I am assigning hidden field

I have written set and get methods in form.

I have set its value in the action class in default mode which is it gets loaded initially. Now when i press a button its should check this value so I am trying to call hidden field value

I am getting null value.. please help me.
Eswar Nec
Ranch Hand

Joined: May 02, 2010
Posts: 105
Get hidden field value using formName.

and script

Wake up! Don't let your smile be snatched away by anybody!
Regards, Eswar
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63547

It has nothing at all to do with the fact the field is hidden. Use modern addressing mechanisms such as document.getElementById().

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Hidden fields
It's not a secret anymore!