Welcome to the LimeSurvey Community Forum

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

Store preceding question and display at the end of survey

  • cauhlins
  • cauhlins's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 weeks ago #196668 by cauhlins

holch wrote:

However, the code you provided may not be sustainable as I have a rather long list of upload questions.


I don't really see why my code should not work for 10-15 upload questions as well.


Hello @Holse,

I have a question concerning the use of your code. Is there a workaround for the question with the Yes/No type cos I just realised a bulk of my questions are of the Yes/No type?

Also, would I need to reference the question codes or the ID itself when using the code?

Thank you in anticipation of your kind response.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 weeks ago #196670 by Joffm
Hi,
1. holch showed the code for "Yes/No"

{if(Q1=="Y", "Please upload a photo of your car", "")}

2. code

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • cauhlins
  • cauhlins's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 weeks ago #196671 by cauhlins

Joffm wrote: Hi,
1. holch showed the code for "Yes/No"

{if(Q1=="Y", "Please upload a photo of your car", "")}

2. code

Joffm


Hi Joffm,

This is only if I am using a list type of question where I get to set the entries myself as Yes & No unlike the Yes/No type that is built in.

My survey is built with a lot of Yes/No type.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 weeks ago #196672 by holch
No, my code is for the built in "Yes/No" question type, where the answer option "yes" has the answer code "Y".

For list type questions where you set your own values it works similar. Instead of "Y" you write the code that you have used for Yes.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • cauhlins
  • cauhlins's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 weeks ago #196673 by cauhlins

holch wrote: No, my code is for the built in "Yes/No" question type, where the answer option "yes" has the answer code "Y".

For list type questions where you set your own values it works similar. Instead of "Y" you write the code that you have used for Yes.


Oh really!

Thanks then. I thought it was for the list type.

I'd try that and revert.

Thanks once again.
The topic has been locked.
  • cauhlins
  • cauhlins's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 weeks ago #196677 by cauhlins
Thanks guys for your help.

Holch's code worked for me.

My upload questions were way more than I estimated initially. They are actually 47 in number but the code does what I want and I'm fine with it.

Thank you holch and Joffm
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose