PatrickMacC
asked on
Dynamic Drop Down Causing Issue any ideas
Hi All,
I have a page that has a check box on it called porting once the page is submitted the page it calls
addline.cfm checks to see if the porting check box was checked
on the second page (addline.cfm). I have a dynamic select system. Choose a item from a drop down and the values in the second select are displayed based on the values in the first.
in this case , select phone type (eg evo or iphone) and the second drop down then displays the colors available for the phone selected in the first.
I acomplish this by calling the this.form.submit when the user selects an item from the first drop down.
The issue I now have is that it calls itself and then cant find form.port as a defined varaible
any ideas around this ?
thanks
I have a page that has a check box on it called porting once the page is submitted the page it calls
addline.cfm checks to see if the porting check box was checked
<cfif #form.PORT# eq "on">
on the second page (addline.cfm). I have a dynamic select system. Choose a item from a drop down and the values in the second select are displayed based on the values in the first.
in this case , select phone type (eg evo or iphone) and the second drop down then displays the colors available for the phone selected in the first.
I acomplish this by calling the this.form.submit when the user selects an item from the first drop down.
<select name="select_Phone_Group" required="yes" onchange="this.form.submit()">
The issue I now have is that it calls itself and then cant find form.port as a defined varaible
Element PORT is undefined in FORM.
any ideas around this ?
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
eg. the first page asks for how many lines total are you working with #total-lines#
it asks if some of those lines are ports yes or no #port#
and then it asks if port is yes how many are ports of the total lines #port-lines#
the Addline.cfm page then does the following:
1) shows the dynamic drop downs for the port lines (asks for the number porting as well as what type of phone (drop down 1) and color of phone (drop down 2 generated from drop down 1)
2)shows the dynamic drop downs for the non port lines, same as (1) without the question whats the number
so while the solution above works if there was only one line, it wont work for 2 lines +
anyother ideas.