Checkbox/Database/Flash Form

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. Flash Form & Checkbox
      I'm having trouble changing this listbox code to checkboxes instead. Can you help? <cfselect name="binderyID" label = "Bindery Type"...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default Re: Checkbox/Database/Flash Form

    hi everyone - still needing a solution for this - what am i doing wrong?
    amy_jo Guest

  6. #5

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139