Check out the LimeSurvey source code on GitHub!

"Undefined variable" TOKEN:LANGUAGE

More
3 years 4 months ago #100463 by jonsen
Hello everyone!

I get an "undefined variable" error for the variable TOKEN:LANGUAGE, which I selected using the condition manager. I totally don't understand this error, as this is a closed survey and the language-field is standard in all token tables.... Can anyone shine a light?

Trying to use {TOKEN:LANGUAGE} within a text element also produces an "undefined variable" error.

Best
Jonsen

Please Log in to join the conversation.

More
3 years 4 months ago #100566 by jonsen
This is not actually an error, rather a very minor bug.

The variables are not set until the query is executed once, so entering the test survey will get rid of the "undefined" error.

Maybe the syntax check should check the token table for the existence of a TOKEN:... variable, rather then being dependent on the execution of the survey... But yeah, rather unimportant. A little confusing though. (Hey, everybody hates red stuff in their survey logic file!)

Best
Jonsen

Please Log in to join the conversation.

More
3 years 4 months ago - 3 years 4 months ago #100575 by DenisChenu
Hi,

Please : time to fill a bug report :)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
Last Edit: 3 years 4 months ago by DenisChenu. Reason: not big, bug ....

Please Log in to join the conversation.

More
3 years 4 months ago #100583 by jonsen

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form