Hello, please help.
I am using Coldfusion to create a form. The user is ordering T-shirts for the team.
What I wish to accomplish in part of this form is the following:
The user will select an activity (examples: chess club, soccer, golf). The change in the drop down box should trigger something that will create/populate a key-value structure that I wish to call "Items" which contains a list of items, these items have the keys: Ts-YM, Ts-YL (these keys come from the table Products) and the values are the quantity that the user will enter. The default number will be 0. The values should be represented in a text box.
The key-value structure will allow me to use the keys as another piece of data, that I can manipulate later.
The activity tells me which items I should display.The Products table has several items that are sold just for that activity, let's say just t-shirts are sold for soccer, and just hats are sold for golf and just Sweat shirt are sold for the chess club. Hence, according to the activity selected the structure should display the items that belong to that particular activity.
If this is too complicated and you know an easier way to do this, please let me know.
Mainly, I wish to know how to capture the value of the activity selected in the drop down box and be able to assign that value to a ColdFusion variable to use it in the same page without having to reload it.
Thanks in advance for your precious help!
R.Latham
I am using Coldfusion to create a form. The user is ordering T-shirts for the team.
What I wish to accomplish in part of this form is the following:
The user will select an activity (examples: chess club, soccer, golf). The change in the drop down box should trigger something that will create/populate a key-value structure that I wish to call "Items" which contains a list of items, these items have the keys: Ts-YM, Ts-YL (these keys come from the table Products) and the values are the quantity that the user will enter. The default number will be 0. The values should be represented in a text box.
The key-value structure will allow me to use the keys as another piece of data, that I can manipulate later.
The activity tells me which items I should display.The Products table has several items that are sold just for that activity, let's say just t-shirts are sold for soccer, and just hats are sold for golf and just Sweat shirt are sold for the chess club. Hence, according to the activity selected the structure should display the items that belong to that particular activity.
If this is too complicated and you know an easier way to do this, please let me know.
Mainly, I wish to know how to capture the value of the activity selected in the drop down box and be able to assign that value to a ColdFusion variable to use it in the same page without having to reload it.
Thanks in advance for your precious help!
R.Latham