Hi All. I am a relatively new user to CF. I have created a form where users select items from a pickbox and and then these items selected are carried over onto the second form where properties can be added for each item.
So, my code on the second form has the following:
<CFLOOP LIST="#form.list2#" INDEX="x">
<CFOUTPUT>
<option VALUE="#x#">#x#</option>
</CFOUTPUT>
</CFLOOP>
This displays all the items selected from the first form onto the second form. When the users have added/updated each item, they press an [Add] button which redraws the form and the added properties are added to a table which is redrawn and displayed on the form.
However, this is the problem. When the form is redrawn, #form.list2# doesn't exist anymore. It only exists the first time I enter onto this second form. So, obviously, I get an error every time the [Add] button is selected. This is probably a simple problem to fix, but I can't seem to figure out the best way to resolve this. Any ideas? Thanks in advance.
So, my code on the second form has the following:
<CFLOOP LIST="#form.list2#" INDEX="x">
<CFOUTPUT>
<option VALUE="#x#">#x#</option>
</CFOUTPUT>
</CFLOOP>
This displays all the items selected from the first form onto the second form. When the users have added/updated each item, they press an [Add] button which redraws the form and the added properties are added to a table which is redrawn and displayed on the form.
However, this is the problem. When the form is redrawn, #form.list2# doesn't exist anymore. It only exists the first time I enter onto this second form. So, obviously, I get an error every time the [Add] button is selected. This is probably a simple problem to fix, but I can't seem to figure out the best way to resolve this. Any ideas? Thanks in advance.