Limesurvey Version 1.71+ (5246)
I would like to use information from my tokens table, as described in the manual (
docs.limesurvey.org/tiki-index.php?page=...on_from_tokens_table).
In order to do so, I typed the following sample code into the "Question" section of one of my questions:
My Question?<startscript>if {TOKEN:ATTRIBUTE_1}='worker' then write 'bosses' else write 'workers'<endscript>
Unfortunately, the script code is not executed, but rather displayed as text. When I execute my survey (in closed mode, with tokens defined) or preview the question or edit the question again, I see the following:
My Question?ript />if {TOKEN:ATTRIBUTE_1}='worker' then write 'bosses' else write 'workers'ript />
Could anyone please let me know how I can ensure that the script code will be executed instead of being displayed as text?
Thanks a lot in advance!