I have a drop-down field in the CP - It represents a range of numbers that are based either a percent or a fixed number.
For example, a choice could be Fixed 5%
or a choice could be Variable 5%
In either case, the value of my field is 5.00
for both options. The label is different, one says "Fixed" the other says "Variable".
It seems that this is a bad approach as I will usually get the first match based on value.
Let's say I have Fixed 5%
listed first in my drop down field, but I actually choose Variable 5%
. Currently, I am getting Fixed 5%
as the selected option instead of Variable 5%
.
I'm not sure how I can set up this field correctly so that Craft can see what I have chosen correctly. Perhaps there is a better way to setting up my drop down?