Okay, I figured out a "workaround" that's a bit crude, but works.
It's based on the info that 6 or more options automatically switches over to "dropdown mode":
Code:
def dropdown1 = true;
while (dropdown1) {
def pickoption = getSelectedValue("You can have a dropdown box instead of buttons, but you MUST have more than "+
"5 choices for this to work.", ["Option 1", "Option 2", "Option 3", "?", "?", "?"])
if(pickoption==0) {
show("You chose option 1.");
dropdown1 = false;
}
else
if(pickoption==1) {
show("You chose option 2.");
dropdown1 = false;
}
else
if(pickoption==2) {
show("You chose option 3.");
dropdown1 = false;
}
}
showButton("Continue");
show(null);
return;
... gives a dropdown with less than six working choices. Note that you can make the "?" choices just "" and have nothing but white space (that does "nothing" when clicked, thanks to the loop) but I thought the ?s looked a bit nicer as there is already one to represent the first invalid choice.
Alternate version (no difference in effect, but may be better depending on how much code you're putting in each option's "true" section):
Code:
def dropdown1 = true;
while (dropdown1) {
def pickoption = getSelectedValue("You can have a dropdown box instead of buttons, but you MUST have more than "+
"5 choices for this to work.", ["Option 1", "Option 2", "Option 3", "?", "?", "?"])
if(pickoption==0) {
show("You chose option 1.");
}
else
if(pickoption==1) {
show("You chose option 2.");
}
else
if(pickoption==2) {
show("You chose option 3.");
}
if (pickoption<3) {
dropdown1 = false;
}
}
showButton("Continue");
show(null);
return;
Hope this code helps others who want dropdowns (but less than 6 options) too!
Thanks, Doti, for the info about the 6+ option 'trip' that makes this possible.