I've been using the Multiple Select Fields Mod -- allowing users to input several items from a drop-down list in one field. It's great!
Now I've got another need. I've defined 20 select menus in the .cfg file. Each one corresponds to one of 20 values for a field called "Topic" (the user choosing the value from a simple select menu).
Now, if the user has chosen Topic 20, I want to display Select Menu 20 (with a series of questions which match the topic) ... and so forth for the 20 Topics.
So I'm trying the following in the .pl file to display the select menu:
if ($rec{'Topic'} eq "$topic20") {
|; print &build_select_field("Qn20", "$rec{'name_of_field_here'}");
} print qq|
-- having tried to define the select menu as Qn20 in the .cfg file. But this definition in .cfg gets rejected because it's not itself a field.
I'd really appreciate some guidance on how I might resolve this.
TIA,
Andy
[This message has been edited by Andy (edited November 27, 1999).]
[This message has been edited by Andy (edited November 27, 1999).]
[This message has been edited by Andy (edited November 27, 1999).]
Now I've got another need. I've defined 20 select menus in the .cfg file. Each one corresponds to one of 20 values for a field called "Topic" (the user choosing the value from a simple select menu).
Now, if the user has chosen Topic 20, I want to display Select Menu 20 (with a series of questions which match the topic) ... and so forth for the 20 Topics.
So I'm trying the following in the .pl file to display the select menu:
if ($rec{'Topic'} eq "$topic20") {
|; print &build_select_field("Qn20", "$rec{'name_of_field_here'}");
} print qq|
-- having tried to define the select menu as Qn20 in the .cfg file. But this definition in .cfg gets rejected because it's not itself a field.
I'd really appreciate some guidance on how I might resolve this.
TIA,
Andy
[This message has been edited by Andy (edited November 27, 1999).]
[This message has been edited by Andy (edited November 27, 1999).]
[This message has been edited by Andy (edited November 27, 1999).]