Welcome to the LimeSurvey Community Forum

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

AutoFill Response

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 9 months ago - 7 years 9 months ago #138750 by DenisChenu
Replied by DenisChenu on topic AutoFill Response

biloFG wrote: , 5,' '}

Here : this need one ) for sure ....

Each line you put : you don't close the )

Use a text editor to do your expression, quicly done, but don't see logic (just fix syntax)
Code:
{if((
  t2m69v01_01=="Y") OR (t2m69v01_02=="Y")), 2,' '
)}
{if(t2m69v01_03=="Y"), 4,' ')}
{if(t2m69v01_04=="Y"), 3,' ')}
{if(t2m69v01_nd=="Y"), 1,' ')}
{if(
  (t2m69v01_01=="") and (t2m69v01_02=="") and (t2m69v01_03=="") and (t2m69v01_04=="") and (t2m69v01_nd==""), 5,' '
)}

With if
Code:
{if(TEST,"true","false"')}

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.
Last edit: 7 years 9 months ago by DenisChenu.
The topic has been locked.
More
7 years 9 months ago #138757 by FranzGerbig
Replied by FranzGerbig on topic AutoFill Response
Hi Denis,

SO NICE of you and SO EASY to do. :silly:
Thx a lot - this a very great help!

I added another opening ( after the if and don't get any more error messages :)
{if(((t2m69v01_01=="Y") OR (t2m69v01_02=="Y")), 2,' ')}
{if((t2m69v01_03=="Y"), 4,' ')}
{if((t2m69v01_04=="Y"), 3,' ')}
{if((t2m69v01_nd=="Y"), 1,' ')}
{if(((t2m69v01_01==" ") and (t2m69v01_02==" ") and (t2m69v01_03==" ") and (t2m69v01_04==" ") and (t2m69v01_nd==" ")), 5,' ')}

using LS 3.13.2+180709
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose