Ask a Question related to Coldfusion Database Access, Design and Development.
-
amy_jo #1
Checkbox/Database/Flash Form
I have an access DB with several yes/no fields that I want to appear as
checkboxes in a flash form.
When I try to query the db, the checkboxes don't show the value - when changed
to a text field I can see that value is 1(for yes).
How do I get the checkbox to recognize the yes/no from the db and mark it as
checked if it exists?
amy_jo Guest
-
Flash Database form Integration
I have a question I want to create a flash form for a user sinup but I want to be able to in the for check the new username against names currently... -
Flash Form & Checkbox
I'm having trouble changing this listbox code to checkboxes instead. Can you help? <cfselect name="binderyID" label = "Bindery Type"... -
Howto bind CheckBox to the datagrid/ Then update the database field when the checkbox is clicked.
I am trying to update the database field when the checkbox is clicked. I am trying to modified the following solution but.. got stuck on the... -
Checkbox value in MX7 Flash Form
I am testing multi-tab forms in MX7 using the last example from the HTML documentation for the cfformgroup tag. The cfdump just shows whether each... -
Boolean database value as checkbox on form?
Dave wrote: In Access the numeric boolean values are 0 and -1, not 0 and 1. Confusing or what? A checkbox, bound to your boolean Fields in... -
Dan Bracuk #2
Re: Checkbox/Database/Flash Form
What do you mean the checkboxes don't show the value? What method did you use to check, and what did you see?
Dan Bracuk Guest
-
amy_jo #3
Re: Checkbox/Database/Flash Form
Ok, here is what I have - it is pulling the text data(test type):
<cfformgroup type="page" label="Vision Screening">
<cfoutput query="Vision">
<cfinput type="datefield" name="vTestDate" label="Date Tested"
bind="#Vision.Date#">
<cfinput type="text" name="VTestType" label="Test Type"
bind="#Vision.TestType#">
<cfinput type="checkbox" name="VisionPerm" label="Permission to Test"
bind="#Vision.Permission#" value="#Vision.Permission#">
</cfoutput>
</cfformgroup>
Thanks for the fast response and not laughing me out of here :D
amy_jo Guest
-
amy_jo #4
Re: Checkbox/Database/Flash Form
hi everyone - still needing a solution for this - what am i doing wrong?
amy_jo Guest
-
TSB #5
Re: Checkbox/Database/Flash Form
When you say "doesn't show the value" do you mean it is not checked if it is 1
in the database?
I don't see where you have the checked option. If you want it to be chacked
you need to have the word checked in the tag. You can do it this way.
<cfif vision.permission>
<cfset checkedFlag = 'checked'>
<cfelse>
<cfset checkedFlag = ''>
</cfif>
<cfinput type="checkbox" name="VisionPerm" label="Permission to Test"
bind="#Vision.Permission#" value="#Vision.Permission#" #checkedFlag#>
I assume the permission field is 1 or 0 so the cfif statment should work as is.
Trevor
[url]http://www.burnette.us[/url]
TSB Guest



Reply With Quote

