CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 checkbox disable or make invisible

Print topic Send  topic

Author Message
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
View profile  Send private message
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?
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.