relevance equations not working after question group import

More
3 years 4 days ago #113541 by RaCMJS
RaCMJS created the topic: relevance equations not working after question group import
I created a new survey with 2 question groups. The second group has a LOT of relevance equations that depend on the questions in the first question group. I tested the survey it looks fine.

Now I am in the second stage of development and need to use this survey as part of 2 other surveys. Those surveys were already created. So my thinking was that I can export the question groups and import them into the first surveys. I did this, but the relevance equations get messed up and I am not sure why. Some of them come through and some of them don't. See below:

jewmom: [((742545X651X107921.NAOK == "Y")) or ((742545X651X10791.NAOK == "1"))] if(livemom == 0, 'Before she passed away, what', 'What') if(livemom == 0, 'was', 'is') your MOTHER'S if(livemom == 0, '', 'present') religion, if any?

What am I doing wrong?

Thanks for your help.

Please Log in to join the conversation.

More
3 years 4 days ago #113544 by holch
holch replied the topic: relevance equations not working after question group import
Your problem is that you seem to use the SGQA code in the relevance equation instead of the question code. The SGQA code needs to be different in each survey, because the first part is the survey, then the group and then the question. However, Limesurvey needs to give a unique survey code to each survey. Use the question code instead (the code that YOU are giving the question when creating a new question).

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now