Topic: 3 Stage Checkbox Possible? (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Australia |
posted 06-26-2006 08:23
Anyone know if its possible to have a 3 stage checkbox on a form? They are pretty common in desktop apps, its either unticked, ticked or colored in. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 06-26-2006 08:49
Not with pure html - easy enough to do with a bit of css and javascript though... |
Paranoid (IV) Inmate From: Norway |
posted 06-26-2006 09:47
I used to place an input type='hidden' with same ID as the checkbox right before it. Once submitted the value of the if the checkbox was not ticked, it's value was not sent thus the value of the hidden field remained. code: checkbox ticked | value of the hidden | "3 stage value" ----------------+---------------------+---------------- unticked | 'whatever' | 'whatever' unticked | 'no' | 'no' ticked | 'yes' | 'yes' Style the checkbox and/or change the text of the label around the checkbox accordingly and you're done. |
Bipolar (III) Inmate From: Australia |
posted 06-26-2006 10:11
Thought as much, thanks! |
Paranoid (IV) Inmate From: Norway |
posted 06-26-2006 13:24 |
Maniac (V) Inmate From: Den Haag: The Royal Residence |
posted 06-26-2006 14:08
Read this: |
Lunatic (VI) Inmate From: under the bed |
posted 06-26-2006 14:20 |
Bipolar (III) Inmate From: Australia |
posted 06-27-2006 02:21
Thanks will check those links out. |
Lunatic (VI) Inmate From: under the bed |
posted 06-27-2006 04:59 |
Bipolar (III) Inmate From: Australia |
posted 06-27-2006 06:04
Hmm really, i see it on desktop apps all the time. |
Lunatic (VI) Inmate From: under the bed |
posted 06-27-2006 14:20
quote:
|
Bipolar (III) Inmate From: Australia |
posted 06-27-2006 15:45
Yeh i have seen what you are talking about, i think its possibly even more confusing. |