Skip to main content
June 30, 2011
Question

repeating table row text field issue

  • June 30, 2011
  • 2 replies
  • 796 views

Hi ,

Not sure if this a CF issue per se. I am outputting data to a table, product , pricing , image ect... in each row I have a text field and add button. The text field has a value of 1 , and the add , works via onclick event. My issue is this. Only the first row passes any number as value should you want to change quanity. The rest of the rows only add 1 no matter what you type in. You can increment quantity if you keep clicking , but it's usability issue and I can't find a reason or workaround. Has anyone heard of this? Thanks.

Steve

    This topic has been closed for replies.

    2 replies

    July 7, 2011

    Still looking at this issue. I don't think it's CF at all. The repeating table row somehow gives the first text box functionality , i.e. any change in value and the onChange ,onBlur functions ect. The rest of the rows only take the hard coded value of 1 and the add button works for all rows. Strange indeed.

    Inspiring
    June 30, 2011

    Add a couple of fields to your form and submit it.  On your action page, cfdump your form to see what is being submitted.  Pay particular attention to the names of the fields added by javascript.

    June 30, 2011

    Dan ,

    There is no form. Basically a Javascipt function passes info to a cart action page where it switches through actions like list , add, ect ... thats where the queries live for all the actions. I have the cart displayed in some text in a thin taskbar type element in the header. Kind of a dynmic cart view. I did trace all the queries and actions, and they seem fine. It sill doesn't explain why the first row of my repeating table only passes it's text box's changed value , while the rest don't , only the hard coded one on the input tag, which is set to 1. Thanks for the reply.

    Steve

    Inspiring
    June 30, 2011

    Same general idea, different details.  Do whatever it takes on the action page to see what data got sent to it.