Link to home
Create AccountLog in
Avatar of Rowby Goren
Rowby GorenFlag for United States of America

asked on

Hiding the values in a form.

Hi

I have a form with this id:  feedback

I have this html in the form
<input type="checkbox" value="Army" class="0" name="f8_label[]">

Open in new window


How do I hide the value in any checkbox that occurs in the feedback's  checkboxes?  

As it is, the checkbox values are visible in the html to the visitors.

Thanks

Rowby
Avatar of LZ1
LZ1
Flag of United States of America image

The value of the checkbox isn't displayed normally.

Not sure what you mean exactly.
SOLUTION
Avatar of EMHillm4n
EMHillm4n

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Rowby Goren

ASKER

Hi : EMHillm4n,

It's okay if it is visible if someone looks at the source..  But I don't want it visible when you look at the regular page.

Perhaps using the following css that I found just now via a google search....

display:none

or
 visibility:hidden
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Scott Fell
<input type="hidden" value="Army"  name="f8_label[]">
If you hide it with css or js it will not show up when you submit the form.
If you hide it with css or js it will not show up when you submit the form.

Open in new window


Hmmm..  It needs to show up when the form is submitted and the form results are received by email.

Well then how is this handled in any form.  

Right now the form values are clearly visible in the form I created.   I don't mind the label to be visible.  But the values....   Hmmmm????

I'm going to do a screen capture of the form.  Perhaps that will help... Stay tuned.

Rowby
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Hi

I am starting to see my problem.  Here's the screen capture.

I see where the radio button has its values showing. But the checkboxes.... not sure how to handle this....

Rowby
form-visible2.jpg
ASKER CERTIFIED SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Hi  

I ended up using a different form system that solved the problem.

However I am keeping your solutions as guides for the future in dealing with checkboxes.

Thanks!

Rowby