- Posts: 19
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
upgrade 2.05: survey prefills answers (caused by using "=="??)
- Bart01
- Topic Author
- Offline
- New Member
Less
More
9 years 11 months ago #107392
by Bart01
upgrade 2.05: survey prefills answers (caused by using "=="??) was created by Bart01
syntax used in 1.92 was.
{if(VQ12_SQ001.NAOK=="Y",if(countif('A1',V2004a_USP1_1.NAOK,V2004a_USP2_1.NAOK,V2004a_USP3_1.NAOK,V2004a_USP4_1.NAOK,V2004a_USP5_1.NAOK,V2004a_USP6_1.NAOK,V2004a_USP7_1.NAOK,V2004a_USP8_1.NAOK,V2004a_USP9_1.NAOK,V2004a_USP10_1.NAOK,V2004a_USP11_1.NAOK,V2004a_USP12_1.NAOK)>0,'','You chose XXXXX.'),'')}
This equation is used further down the survey, but it looks like it causes prefilling answers.
The double "==" cannot be changed, since changing to single "=" generates a syntax error.
{if(VQ12_SQ001.NAOK=="Y",if(countif('A1',V2004a_USP1_1.NAOK,V2004a_USP2_1.NAOK,V2004a_USP3_1.NAOK,V2004a_USP4_1.NAOK,V2004a_USP5_1.NAOK,V2004a_USP6_1.NAOK,V2004a_USP7_1.NAOK,V2004a_USP8_1.NAOK,V2004a_USP9_1.NAOK,V2004a_USP10_1.NAOK,V2004a_USP11_1.NAOK,V2004a_USP12_1.NAOK)>0,'','You chose XXXXX.'),'')}
This equation is used further down the survey, but it looks like it causes prefilling answers.
The double "==" cannot be changed, since changing to single "=" generates a syntax error.
Attachments:
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13910
- Thank you received: 2548
9 years 11 months ago #107396
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic upgrade 2.05: survey prefills answers (caused by using "=="??)
Hi,
You must not use = :
TIP0 : Relevance equation: ((VQ1_SQ001.NAOK="Y") AND (VQ1_SQ002.NAOK="Y")) You have to replace with
((VQ1_SQ001.NAOK=="Y") AND (VQ1_SQ002.NAOK=="Y"))
Same in VQadres and surely some other.
Denis
You must not use = :
TIP0 : Relevance equation: ((VQ1_SQ001.NAOK="Y") AND (VQ1_SQ002.NAOK="Y")) You have to replace with
((VQ1_SQ001.NAOK=="Y") AND (VQ1_SQ002.NAOK=="Y"))
Same in VQadres and surely some other.
Denis
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: Bart01
The topic has been locked.
- Bart01
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 0
9 years 11 months ago #107633
by Bart01
Replied by Bart01 on topic upgrade 2.05: survey prefills answers (caused by using "=="??)
** solved **
The topic has been locked.