My site has a registration form for several different seminars and uses the Dynamic Registration module to do so.
On the home page, there are several different seminars to choose from. Selecting one will put the code for the seminar into a querystring and pass it along to the next page (which is the registration page). There is a DropDownList [called "SeminarCode"] that is populated by an SQL table, reads the QueryString and selects the correct Seminar as follows:
SELECT Seminar as QuestionOption, SeminarCode as QuestionOptionValue FROM vw_seminar
This works fine.
Further down the form, I have a textbox that displays the cost of attending the selected seminar by pulling the cost out of the SQL table. However, it only works if I hard code the seminar code in; With:
SELECT Cost AS DefaultValue FROM vw_seminar WHERE SeminarCode = 'SEM0208'
or with my stored procedure:
EXECUTE sp_GetSeminarPrice 'SEM0208'
I get $100. I tried the other seminars with this technique and got their respective cost displayed properly.
But, if I try with $(SeminarCode), I get a blank textbox. I've checked and unchecked the "Pass values of this question to session variable" and "Retrieve values from session variable for this question" options any which way to no avail.
Is there another way that I can try to get this information such that I can dynamically display the price of the seminars based on what the DropDownList is displaying? Any help would be great.