"Undefined variable" TOKEN:LANGUAGE

More
3 years 10 months ago #100463 by jonsen
jonsen created the topic: "Undefined variable" TOKEN:LANGUAGE
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 10 months ago #100566 by jonsen
jonsen replied the topic: "Undefined variable" TOKEN:LANGUAGE
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 10 months ago - 3 years 10 months ago #100575 by DenisChenu
DenisChenu replied the topic: "Undefined variable" TOKEN:LANGUAGE
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).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 3 years 10 months ago by DenisChenu. Reason: not big, bug ....

Please Log in to join the conversation.

More
3 years 10 months ago #100583 by jonsen
jonsen replied the topic: "Undefined variable" TOKEN:LANGUAGE

Please Log in to join the conversation.

Did you already participate in our customer survey?

Don't miss your chance for great prices.

Please click here to participate:

Start now

Start now!

Just create your account and start using Limesurvey today.

Register now