Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Free Format [%CheckSelect()%] help

Hi,

how can I correctly use [%Questionname()%] within a [%CheckSelect()%] if I have composed question names in a freeformat ?

The goal is to turn this:
[%CheckSelect(SP09neu_Position, 1)%]

into this:
[%CheckSelect([%Questionname()%]_Position, 1)%]

Best
Kathrin
asked Jun 21 by Kathrin (375 points)

1 Answer

+1 vote
To use the QuestionName function in conjunction with RadioSelect / CheckSelect, we need to use unverified Perl.  Try this:

[% Begin Unverified Perl
return CHECKSELECT(QUESTIONNAME() . '_Position', 1);
End Unverified %]
answered Jun 21 by Zachary Platinum Sawtooth Software, Inc. (177,175 points)
...