Topic: 3 Stage Checkbox Possible? (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Australia |
![]() 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 |
![]() Not with pure html - easy enough to do with a bit of css and javascript though... |
Paranoid (IV) Inmate From: Norway |
![]() 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 |
![]() Thought as much, thanks! |
Paranoid (IV) Inmate From: Norway |
![]() |
Maniac (V) Inmate From: Den Haag: The Royal Residence |
![]() Read this: |
Lunatic (VI) Inmate From: under the bed |
![]() |
Bipolar (III) Inmate From: Australia |
![]() Thanks will check those links out. |
Lunatic (VI) Inmate From: under the bed |
![]() |
Bipolar (III) Inmate From: Australia |
![]() Hmm really, i see it on desktop apps all the time. |
Lunatic (VI) Inmate From: under the bed |
![]() quote:
|
Bipolar (III) Inmate From: Australia |
![]() Yeh i have seen what you are talking about, i think its possibly even more confusing. |