Questions tagged [hidden-field]

An HTML Input element that users do not see or interact with. It can hold a value and is often used to store client-side variables.

As defined from w3.org:

An INPUT element with `TYPE=HIDDEN' represents a hidden field. The user does not interact with this field; instead, the VALUE attribute specifies the value of the field. The NAME and VALUE attributes are required.

For example:

<input type=hidden name=context value="l2k3j4l2k3j4l2k3j4lk23">

This element is available in the following versions of HTML:

  • HTML 3.2
  • HTML 4.0
  • HTML 5
  • XHTML 1.0

It is important to note that users are able to see the hidden values if they view the source of the page. Hidden fields should never be used to store sensitive information like passwords or credit card information. A good programming guideline is to only use the hidden field to store information that the page has generated or information the user would not know or understand.

946 questions
-1
votes
5 answers
-1
votes
2 answers

Output hidden input fields for each Variation of a Woocommerce variable product

Having a problem in my store where I want to set up some hidden input fields. Each field relates to a variation ID of my product (they all have three variations)
Adam Bell
  • 1,049
  • 1
  • 16
  • 50
-1
votes
1 answer

Possibility of loading html data in hidden field for PHP Form

Is it possible to load HTML into a hidden field when posting data in a php form? For example: test span
" /> Or will there be any issues I'm not…
marchemike
  • 3,179
  • 13
  • 53
  • 96
-1
votes
3 answers

how to send hidden details when click on image in while loop

this is my code while ($row = $result->fetch_assoc()) { $imgpath=$row['image_name']; $id=$row['id']; here when i click send ID to next page
krish
  • 120
  • 14
-1
votes
1 answer

XSLT and PHP: $_REQUEST in hidden field

I am posting hidden values in hidden fields to another form like this:
Kieran
  • 612
  • 6
  • 22
-1
votes
2 answers

Rails - Conditional statement in form recognizing wrong url paramater

I have a polymorphic relationship between Attachments and Users & Teams so that both users and teams can upload attachments. The :team_id or :user_id is passed along as a param when the "Add file" button is clicked. Then, a hidden field in the…
ncarroll
  • 108
  • 1
  • 1
  • 10
-1
votes
2 answers

Hidden Field Value in JavaScript is not posted

this error is (again) discussed a thousand times in different forums, but I don't find anything that would help me with my problem. I have a form, a hidden field and some links, that change the value of this field and submit the form. I checked it…
Marcel Grüger
  • 885
  • 1
  • 9
  • 25
-1
votes
1 answer

How to add hidden control in OpenUI5?

I would like to add a hidden control in Open UI5 framework.Can any one help me on this?
user416
  • 516
  • 3
  • 12
  • 34
-1
votes
2 answers

Div id to the input value

I have a div
This prints an id for each product on the page. Ex: 26588 How do I assign it to a hidden input value ?
"> Not like of course :=)
Extropy
  • 13
  • 1
  • 1
  • 5
-1
votes
2 answers

Get updated HiddenField Value in code behind

I have a LinkButton in aspx page where on OnClientClick I am updating the value of Hidden Field, and on OnClick I am saving that value to the database.
Gopesh Sharma
  • 6,730
  • 4
  • 25
  • 35
-1
votes
2 answers

Is the posted value for a form input, where type=hidden, a string?

I am trying to streamline my php for my current website. Typically, I have treated (successfully) submitted form values using the == operator, as follows;
-1
votes
2 answers

jQuery Validation Plugin Cannot Ignore Hidden or Disabled fields

I use jQuery Validation Plugin and I want to validate some hidden/disabled fields besides the other fields. Although every fields can be validated properly, I have some trouble with the hidden/disabled fields. At this point: 1) I hide a Textbox…
Jack
  • 1
  • 21
  • 118
  • 236
-1
votes
1 answer

Take value of hidden field in haml

I am new on Rails. I have a hidden field and a toggle button in haml. How can i take the value of the hidden field and if is 0 then i change the class of the button to active. I use coffescript to set a value to the hidden field. Thanks
-1
votes
3 answers

Export to Excel - Hidden Field not generating results

I've a simple CFC file that contains the different functions for different queries & a separate function that displays the reports dynamically based on the queries. All the queries work except one which returns approx. 50k rows. Its just a blank…
Crash OR
  • 327
  • 1
  • 3
  • 14
-1
votes
1 answer

Check Hidden Input Fields Based On Radio Button Selected

I HAVE searched on here but, despite finding LOTS of similar and most likely MUCH more complicated situations, couldn't find an answer to what I am wanting to do. Basically, on my site's search form I want to present 2 radio button…
Denny
  • 15
  • 6