Welcome to the LimeSurvey Community Forum

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

Giving Feedback(insight) after a question being answered

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago #233898 by Joffm
I was not able to import your lss export.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • Checking1
  • Checking1's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 2 months ago #233909 by Checking1
Its in hebrew, perhaps you need to change it to english / the language you use? 
attaching it again in LSS and TXT formats

File Attachment:

File Name: Survey.lss
File Size:35 KB
 

File Attachment:

File Name: Survey.txt
File Size:35 KB

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago #233921 by holch

error "undefined variable" l


This means that the variable you are trying to access does not exist.

Given that you are trying to use a multiple choice question type, I am sure that you are not addressing the question correctly.

This question type consists of subquestions. Actually it is a bunch of "yes/No" questions.

Accessing the subquestions requires something like {questionID_subquestionID} and the response is stored as 'Y' if the subquestion was ticked.

I also get the following error message when trying to import your survey:
Code:
Import survey data
Error
 
This is not a valid LimeSurvey survey structure XML file.

I even added Hebrew to the languages of my installation, but is still presents the same error. There seems to be something wrong with your LSS file.

When importing your TXT file, I am getting this error (despite having added Hebrew to the languages of my installation):
Code:
500: Internal Server Error
Selected Surveys language not found
An internal error occurred while the Web server was processing your request.
 
Please contact ####  to report this problem.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago #233927 by Joffm
Hi,
1. even if I remove ALL references to hebrew, I get the mentioned error.
2. Your "*.txt" file seems to be only the lss export renamed to ":txt".
Please use the export option to create a txt export.

But better you create a small prototype (only english) with the relevant questions, explain what you exactly want to achieve and send this lss export

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • Checking1
  • Checking1's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 2 months ago #234102 by Checking1
Hi, 
Sorry it took me a while but i made a brand new survey, LSS attached , all in english  

File Attachment:

File Name: limesurvey...2536.lss
File Size:49 KB

inside the answers section i made some questions with " */*/ " remarks of what i intended to do 
thanks for all the help 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago #234109 by Joffm
Hi,
you should have mentioned that now you are using version 5.x. 
You know that you can't import a 5.x. export into a 3.x. installation.

Well,
here your survey back.
 

File Attachment:

File Name: limesurvey... (1).lss
File Size:50 KB


Read about the "self" and "that" variables, and about the implemented functions.

You may use assessment values, but do not use assessment rules. These are outdated.
Use ExpressionScript instead.You see, you do not use the assessment value in A1. Here you refer to the code (Q1=="C1")
Using the assessment value you would have used (Q1.value==1)
In this example it doesn't matter what you use.
Assessment values are interesting, if more than one answer option have the same value, some values are negative.
In these cases you can't use the code; you have to use assessment values.

And at last: In my opinion it is always better to use numerical codes (you save brackets, easier equations - Q1<4, instead of "Q1=="A1" OR Q1=="A2 OR Q1=="A3")
But this is up to you.

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago - 2 years 2 months ago #234112 by Joffm
But remember:
You still have to decide, when is Q2 answered correctly
When C1 AND C2 are selected, ignoring selections of  I1 and I2,
or if C1 AND C2 are selected AND I1 AND I2 are NOT selected.

At the moment you seem to prefer the first option.

For the second option you may use this
{if(countif("Y",that.Q2.sq_C)==2 AND countif("Y",that.Q2.sq_I)==0 , "Correct!", "Incorrect")}

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 years 2 months ago by Joffm.
The following user(s) said Thank You: Checking1

Please Log in to join the conversation.

  • Checking1
  • Checking1's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 2 months ago #234126 by Checking1
Thanks for all the help, its much apricated
1 more thing that i'd like to do is show the original question in the multi-choice category
since using ".question" will show the subquestions, how do i recall it?

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago #234127 by Joffm
There is a plugin included
[url] www.limesurvey.org/manual/ExpressionQuestionForAll [/url]

probably you have to activate it.


 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: tpartner

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose