TheunisP
Posts: 342
|
| Posted: 11/10/2006, 3:22 PM |
|
I want to disable (or at least) set some checkboxes invisble when they have a certain value in them coming from the record i have the code below in the before show event - but it doesn't work and it loses the checkbox value:
if eventcaller.value <> "Y" then
eventcaller.visible = true
else
eventcaller.visible = false
end if
|
 |
 |
TheunisP
Posts: 342
|
| Posted: 11/10/2006, 5:18 PM |
|
ok using control attributes i got it to diable if it has a checked value in the db - the problem now is when I change other stuff on the form and do an update the disabled checkbox submits what seem to be an empty or unchecked value even tho it is selected (and just disabled)
any ideas?
|
 |
 |
peterr
Posts: 5971
|
| Posted: 11/10/2006, 11:47 PM |
|
Hi,
I believe that checkboxes submit an empty value in the same way as unchecked value. This is just how HTML and Web browsers work.
Also based on: http://www.htmlcodetutorial.com/forms/_INPUT_TYPE_CHECKBOX.html
"Checkbox CHECKBOXs are only sent to the CGI if they are on; if they are off, no name/value pair is sent (try out the form above to see)."
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
|