Skip to main content
Participant
May 28, 2008
Question

How To: bind="{txt_#recId#}"

  • May 28, 2008
  • 3 replies
  • 406 views
With a query result I am generating multiple rows with for inputs...

Each row has a hidden input with the ID of the record and 4 checkboxes, all 4 with the name "CRUD_#RecID#". I am trying to create a hidden input per row that and its value will be bound to "{CRUD_#RecID#}". However, I get the error that says this element does not exist.

Any help would be greatly appreciated.
    This topic has been closed for replies.

    3 replies

    Inspiring
    July 2, 2008
    It appears that he would like to have the value of the CFINPUT to be populated with whatever the crud_#recID# form element is set to.
    May 30, 2008

    What the following BIND is FOR???
    <cfinput type="text" name="tmp#currentrow#" bind="{crud_#recID#}" />

    Why not do it directly like
    <cfinput type="text" name="tmp#currentrow#" value="crud_#recID#" />
    ?

    jorgeloyoAuthor
    Participant
    May 28, 2008
    This works...
    <cfdiv bind="{crud_#recID#}" />

    but not this...
    <cfinput type="text" name="tmp#currentrow#" bind="{crud_#recID#}" />