Element is undefined

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default Element is undefined

    I get the message Form Element TXTSEARCH is undefined with this code:
    <cfset Session.Description = #Form.txtSearch#>

    I have a textbox called txtSearch that i use for input.

    any thoughts?
    thanks, tim


    timrande Guest

  2. Similar Questions and Discussions

    1. Element DS is undefined in APPLICATION.
      Hi Everyone - Finally got to the upload stage. uploaded to my host - mx7 ok. www.healthhokkaido.com I get this Element DS is undefined in...
    2. Undefined element in form - Please Help
      I keep on getting a message displayed stating that I have an undefined element in a form - I have checked and everything looks OK - did a <cfdump>...
    3. Undefined element in form
      I keep on getting a message - Element STARTTIME_HOUR is undefined in FORM ??? I have checked everything that I can think of and can see...
    4. Element (.....) is undefined in FORM
      I am getting this error message after I submit a form (parts request):Error Occurred While Processing Request Element LIPSEALS4044 is undefined in...
    5. Element <VARIABLE> is undefined in URL
      Hi All, I can't seem to remember how to stop the error "Element DOCTYPE is undefined in URL". I am using the following code but I can't solve...
  3. #2

    Default Re: Element is undefined

    The #'s aren't required in that instance unless you enclose it in quotes:

    Either:
    <cfset Session.Description = Form.txtSearch>
    or
    <cfset Session.Description = "#Form.txtSearch#">

    Dan
    N7DLS Guest

  4. #3

    Default Re: Element is undefined

    thank you for you input Dan,
    I've tried both of those suggestions and still get the same error.

    actually i phrased the error message wrong a little. Actually It is: "Element
    TXTSEARCH is undefined in Form"
    maybe this is an IE error? im using ver 6.0.2900.2180 SP2

    timrande Guest

  5. #4

    Default Re: Element is undefined

    Why don't you post your form code and the code that receives the form inputs so we can see what's going on?

    Dan
    N7DLS Guest

  6. #5

    Default Re: Element is undefined

    thanks for your help....found i was missing the cfparam take to define the element..

    timrande Guest

  7. #6

    Default Re: Element is undefined

    hi,
    I've received the same error as the OP and was wondering if someone could elaborate on the solution mentioned above

    thanks
    Unregistered 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