Have an idea?

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


Dear Forum,
I'd like to include the winning concept of my ACBC Survey. The respondent should then provide the price he/she would pay for his/her winning concept.

Thus, I go to Free Format Question and add Variable Type text (Numeric). In the HTML Window I then type:

[% Begin Unverified Perl
End Unverified %]

Unfortunately the function does not return anything, i.e. it is just blank. Does anyone know what I am doing wrong? Thanks in advance.
asked Oct 16, 2017 by Benedikt

1 Answer

0 votes
You need a "return" to make the unverified Perl print out the value.  In addition, I believe you want to call the function on the entire ACBC rather than a single choice task.

[% Begin Unverified Perl
return ACBCWINNERLABEL('CoworkingSpaces', 2);
End Unverified %]
answered Oct 16, 2017 by Zachary Platinum Sawtooth Software, Inc. (96,175 points)
Hi Zachary,

awesome great thanks a lot . It worked. Yes sure I just did not want to repeat the code;-).