Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Set conditions while import question.

  • nitish_kumar
  • nitish_kumar's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 months 2 weeks ago #263133 by nitish_kumar
Set conditions while import question. was created by nitish_kumar
Hello all,

I'm importing questions with an API and want to define conditions on the questions.  
Is there any method or way to set conditions for my questions?
Version: LimeSurvey CE (5.6.56)

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 months 2 weeks ago #263166 by tpartner
Replied by tpartner on topic Set conditions while import question.
I'm assuming that you are importing a BASE 64 encoded .lsq file.

If you export a test question you will see a "relevance" tag in the .lsq file.

Code:
<relevance><![CDATA[Q3 == 'A1']]></relevance>

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose