Quantcast
Viewing all articles
Browse latest Browse all 17529

Usage of expresions - by: Joffm

Hi,
if you are going to use a lot of expressions, you should have read the section about expressions in the manual
and studied the sample surveys, e.g. https://manual.limesurvey.org/images/d/de/Ls2_em_tailoring.lss

Well, just one hint:

If question "11" is "a" and if question "21" is "a" then question "22" will not show

Assuming Q11 and Q21 are single response and "a" is the code of the answer option:
Relevance of Q22 set to: (Q11!="a") AND (Q21!="a"))

If question "12" is not "a" not "d" and question "24" is not "f" then question "28" will not show
If question "24" is "g" then question "30" will show
If question "1" is "a" then questions "7", "8","18", "24-31" will be skipped

More or less analogue.

If question "2" is 'b' question "11" will be locked with "a"

??? If the "a" is forced and single response, Don't show the question, set the "a" in an equation like {Q11="a"}

If question "4" is 'd' then question '6' will display different text

See https://manual.limesurvey.org/Expression_Manager#Tailoring.2FPiping
Use something like:
{if(Q4.NAOK=="b", "This is answer text 1", "This is the other answer text")}

if question "3" is 'd' then question '6' will display different text and possible answers
if question "5" is 'd' then question '6' will display different answers

If only the wording of the answers is changed, again Tailoring/Piping, else it depends on the question type:
single response question don't have relevance of answer options you have to create different questions and display them according to the answer in the other question), multi response questions have.


Best regards
Joffm

Viewing all articles
Browse latest Browse all 17529

Trending Articles