Have an idea?

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

Free Format [%CheckSelect()%] help


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)%]

asked Jun 21, 2021 by Kathrin (415 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, 2021 by Zachary Platinum Sawtooth Software, Inc. (192,600 points)