My form has a combo box where the user selects their type of membership. I originally set the value of each of the list items to be the amount the user had to pay for that type of membership. For example, the list item "corporate (1-2) employees" had a value of 100. I then set up the authorize.net payment processor to use the value of the list item when billing for membership. Voila, all done (or so I thought).
Unfortunately, that didn't work. I have multiple membership types with the same value. It looks like DR stores the value by itself, so the next time the user logged in to update their profile, their membership type was set to the first list item with that value even though it wasn't necessarily the membership type they selected.
To get around that, I created a hidden field called "fee" and assigned question events to each list item in my membership type combo box that updated the value of fee with the required membership fee. I then set the authorize.net payment processor to use the fee hidden field instead of the value from the combo box.
All seemed right with the world until I also tried to hide some fields. The membership types include corporate and individual membership types. The individual membership requires 1/2 the fields as the corporate type. I tried adding a second question event to the individual list item in the combo box to hide the extra fields. It doesn't seem to fire.
Is there some way I can have the form hide questions *and* set the value of the hidden fee element? And, of course, if someone changes their mind and chooses a different membership type, it needs to restore the fieds to their original state.
Thanks for your help,
Troy