check box to mark yes/no data type field

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default check box to mark yes/no data type field

    I've created a form where people can request samples of our product to be sent
    to them. I've created a list page where it lists out all of the current
    requests that still need shipped. In my database I have a field called shipped
    with data type yes/no.

    I made another page which lists all requests that need shipped based off that
    shipped field (yes/no.) From this list there's a link to view the details of
    each record.

    On that details page I'd like to include a check box that we can simply click
    to mark the shipped field to yes so that it won't show up on the list of stuff
    that needs shipped anymore.

    Seems like this should be easy...but I'm an idiot. Please help.

    Thanks!


    drewangell Guest

  2. Similar Questions and Discussions

    1. How to dynamically check what kind of data type itis inside an Arraycollection?
      This kind of check is best avoided if possible IMO but try: if (o is String) { } else if (o is Object) { } The ELSE and the ORDER you do...
    2. Access data type mismatch for empty form field
      Hello Everyone; I'm using an MS Access DB on a CFMX (CF 6) site...and updating records in a db from a form ..the CFM for code looks like : ...
    3. Check Mark removal (next to signature)
      I signed a pdf, but when i email it or print it a check mark or question mark appears. how can i hade this?
    4. [PHP] MySQL field data type for ISBN numbers
      functions you should consider: trim urlencode/urldecode rawurlencode/rawurlencode try "echo '{$_GET}'" (or $query) on the result page to see...
    5. Place the check mark.
      I have created a form that has a date field, description field and a completed checkbox. The checkbox will be hidden from the user, but is a...
  3. #2

    Default Re: check box to mark yes/no data type field

    I've actually switched from the checkbox idea to a simple form button that says
    Shipped.

    I've created a hidden field called Shipped and given it the value of 1. Then I
    use an update record behavior in dreamweaver to update the Shipped field with a
    1 when it's clicked from its default value of 0.

    It then sends me back to the list of the others that need shipped, and it does
    indeed remove the one I just marked shipped.

    However, my problem now is that when it returns me to the list it's leaving
    the paramater on the end of the URL which breaks the page. It displays fine,
    but when I try and click into the details of another record I get an error.

    For instance, I open up sampleRequestList.asp and it shows me my list of all
    requests where Shipped = 0. I've made the person's name a link using the
    requestID field as the paramater to look it up so the next page is something
    like sampleRequestDetails.asp?requestID=10. Then I click that shipped button
    and it sends me back to the sampleRequestList.asp page and the record I just
    marked shipped is now gone...but the URL for my list page is now
    sampleRequestList.asp?requestID=10.

    Again, the page displays fine but when I click on any more of the detail page
    I get a syntax error because it ends up being something like
    sampleRequestDetails?requestID=10&requestID=17


    drewangell Guest

  4. #3

    Default Re: check box to mark yes/no data type field

    Ok I got it fixed. the update behavior creates a variable called MM_editAction
    like so:

    MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
    If (Request.QueryString <> "") Then
    MM_editAction = MM_editAction & "?" & Server.HTMLEncode(Request.QueryString)
    End If

    I just had to comment out the &"?" & Server..... part.



    drewangell 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