Question
2 values from just one dropdown
Hello,
I am using cf 8. and still realitively new at CF.
I have a dropdown for products a, b and c (with their corisponding values) i.e.
<option value="150">a</option>
<option value="200">b</option>
<option value="250">c</option>
When the user selects either a, b or c item in the dropdown i would like not ONE value to be posted but TWO.
i.e. 2 option values posted per selection rather than one.
It seems obvious that dropdowns may only have ONE value assigned to each selection.
If this is the case I thought of creating a second input selection that would be dependant on the first selection. Make the second selection hidden and when the entire form is submitted, the first visable dropdown and the hidden dropdown inputs will be submitted with 2 values respectively. does this sound crazy? Is there an eisier way to do what I am trying to accomplish?
If this is the only(or easiest) way to go, can someone point me in the right direction?
i google'ed this problem but got back suprisingly complex results that isn't quite tailored for my problem by a long shot. What I stumbled across were "dependant dropdown" code that was messy & and confusing to a beginner like me.
Any help would be appriciated.
PCchief
I am using cf 8. and still realitively new at CF.
I have a dropdown for products a, b and c (with their corisponding values) i.e.
<option value="150">a</option>
<option value="200">b</option>
<option value="250">c</option>
When the user selects either a, b or c item in the dropdown i would like not ONE value to be posted but TWO.
i.e. 2 option values posted per selection rather than one.
It seems obvious that dropdowns may only have ONE value assigned to each selection.
If this is the case I thought of creating a second input selection that would be dependant on the first selection. Make the second selection hidden and when the entire form is submitted, the first visable dropdown and the hidden dropdown inputs will be submitted with 2 values respectively. does this sound crazy? Is there an eisier way to do what I am trying to accomplish?
If this is the only(or easiest) way to go, can someone point me in the right direction?
i google'ed this problem but got back suprisingly complex results that isn't quite tailored for my problem by a long shot. What I stumbled across were "dependant dropdown" code that was messy & and confusing to a beginner like me.
Any help would be appriciated.
PCchief
