- Posts: 19
- Thank you received: 2
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
- Topic Author
- Offline
- New Member
Less
More
4 years 2 weeks ago #196668
by cauhlins
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.
Replied by cauhlins on topic Store preceding question and display at the end of survey
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12905
- Thank you received: 3969
4 years 2 weeks ago #196670
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Store preceding question and display at the end of survey
Hi,
1. holch showed the code for "Yes/No"
{if(Q1=="Y", "Please upload a photo of your car", "")}
2. code
Joffm
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 2
4 years 2 weeks ago #196671
by cauhlins
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.
Replied by cauhlins on topic Store preceding question and display at the end of survey
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2738
4 years 2 weeks ago #196672
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Store preceding question and display at the end of survey
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.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 2
4 years 2 weeks ago #196673
by cauhlins
Oh really!
Thanks then. I thought it was for the list type.
I'd try that and revert.
Thanks once again.
Replied by cauhlins on topic Store preceding question and display at the end of survey
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 2
4 years 2 weeks ago #196677
by cauhlins
Replied by cauhlins on topic Store preceding question and display at the end of survey
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
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.