cfform - Element is undefined in FORM

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

  1. #1

    Default cfform - Element is undefined in FORM

    This is sooo frustrating and weird. I have a form that keeps triggering
    Element XXX is undefined in FORM. But, if I view the html source, it shows im
    the form. when i submit the form, the sql update works using the form
    variable, but i still get the undefined message. i have tried IE and netscape
    and both have smae problem.

    the action page has somehting like this

    <cfif FORM.varialble EQ 2>
    <cfquery name="qInsertSystem"
    datasource="#APPLICATION.dsn#">
    UPDATE tTable
    SET thisfield = #FORM.variable#
    </cfquery>
    </cfif>

    the error will say that the variable FORM.variable in line 1 of my code is
    undefined, but then it will execute the update query and properly set thisfield
    = to the form value (even though a few lines above it said it was undefined).

    any suggestions?

    thanks!

    cherylnm Guest

  2. Similar Questions and Discussions

    1. 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...
    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. Styling of cfform and its element
      It seems that with all the styples provided to costumerize the cfform , cfformgroup and so on, I cant seem to get rid of the space between a button...
  3. #2

    Default Re: cfform - Element is undefined in FORM

    well - in case anyone else ever has this problem, the only way i could figure
    out how to solve it was by making the forms aciton page a separate page (i had
    it all in one page before). i even tried making the form a regular <form>
    instead of <cfform> and that still did not work. really weird! oh well.

    cherylnm Guest

  4. #3

    Default Re: cfform - Element is undefined in FORM

    set your variables (initialize) first before everything else.

    <cfset variablename ="">

    Then you should be ok (Sounds like you're posting back to form?)

    javabuzz 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