Skip to main content
Participant
August 23, 2006
Question

Passing form variables

  • August 23, 2006
  • 1 reply
  • 279 views
I am trying to pass a variable from a cfgrid into an action page. The form looks like this.

<cfgrid name="data" query="movieList" height="200" onChange="submitForm()">
<cfgridcolumn name="movie_title" header="Movie Title" headeralign="left" dataalign="left">
</cfgrid>

my action page looks like this.

<cfsearch
collection="showmovies"
name="getMovies"
criteria="#form.movie_title#"
maxrows="100">

and then I ouput the results.

The error I am getting is

"Element MOVIE_TITLE is undefined in FORM"

I am not sure why I am getting that. I works fine in a regular HTML form.

Thanks,
    This topic has been closed for replies.

    1 reply

    Participating Frequently
    August 23, 2006
    Try using the grid name instead of form.

    criteria="#data.movie_title#"

    Ted Zimmerman