Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Same general idea, different details. Do whatever it takes on the action page to see what data got sent to it.
Copy link to clipboard
Copied
Dan,
I believe it might be becuase the Javascript function passes the text field value through the URL. For some reason the first row value is the only legitimate value passed. Even after I pass that one , if I change the value of another row , it will still use the first row's value if it wasn't 1. Very weird behavior. It wouldn't matter if I was only outputting 1 row / 1 item. Thanks. I'll keep whcking away at it.
Steve
Copy link to clipboard
Copied
Actually it passes evrything BUT the qty text box value , that is just passed in the funcion itself. So , I am at an impasse here. Thanks for the help though.
Copy link to clipboard
Copied
Regarding - "There is no form. Basically a Javascipt function passes info to a cart action page "
Maybe it's time to reconsider that approach. Given all the grief it's causing you, can you remember the expected benefits of passing your data that way?
Copy link to clipboard
Copied
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.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more