I have a form where the user picks an item from a select list. The first item is always "NEW", and the remaining items fall underneath. I set up an array so that when the user selects an item, the page is redrawn with the selected item appearing in a text box. So, if the user picks the "NEW" selection, the Name text box now has the value of "NEW". In all instances, the user would rename the value of "NEW" to something else.
When the form is submitted, the action depends on if "NEW" was selected, or if an existing item was selected. What I would like to do is create a switch in the code, so if the user selects "NEW", it will be submitted to ACTIONPAGE_1. If anything else is selected, ACTIONPAGE_2 will be called.
This is the problem. I can't say <CFIF #select_value_query# EQ "NEW"> because since the users are required to change the value from "NEW" to something else, this CFIF statement always returns an error.
What I would like to do is to create a switch to that once the "NEW" value is selected from the select box, I set a switch to a value. That way, on the action page, I can use that value to determine which action page the user goes to.
Any ideas on how to do this? I hope I didn't make this too confusing.
When the form is submitted, the action depends on if "NEW" was selected, or if an existing item was selected. What I would like to do is create a switch in the code, so if the user selects "NEW", it will be submitted to ACTIONPAGE_1. If anything else is selected, ACTIONPAGE_2 will be called.
This is the problem. I can't say <CFIF #select_value_query# EQ "NEW"> because since the users are required to change the value from "NEW" to something else, this CFIF statement always returns an error.
What I would like to do is to create a switch to that once the "NEW" value is selected from the select box, I set a switch to a value. That way, on the action page, I can use that value to determine which action page the user goes to.
Any ideas on how to do this? I hope I didn't make this too confusing.