- Posts: 25
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
A few noob questions : PDF generator, birth date, confirmation email
- limes4LN
- Topic Author
- Offline
- Junior Member
Less
More
9 years 8 months ago #111252
by limes4LN
A few noob questions : PDF generator, birth date, confirmation email was created by limes4LN
Hi,
I'm new with Limesurvey and I have a bunch of n00b questions
First of all, I'm not using Limesurvey as a survey manager, I'm using it to build a registration form to small event for a friend.
So far, I've setup the latest Limesurvey and my first tests are running fine, I already reach 60% of my goal in a few minutes !
Now, I want to improve my survey and I would like to know if I can do it with Limesurvey :
#1 : I want to store data from 2 different fields to a same column in the database *OR* I want to change the question in function of the previous answer (only the question text), is it possible ?
I tried "replacement field" but I can't select my previous question in the list.
I also tried "conditions" but it will create another question and store the result to another database field
#2 : date field : I want the user enter his birthday, I add a "time/date" type, but I only want to see the date in the database, not the time, i tried to "Date/Time format" to dd/mm/yyyy without success. I also wanted to set a maximum and minimum date "01/01/1990" and "01/01/2010" : didn't worked, Limesurvey understood those dates as year 3074 or so...
#3 : I want to send a confirmation email to the user and ask him to print his survey summary. Can I join a PDF to the confirmation email or, at least, a direct link to the PDF ?
For the moment, I can only ask to click on the "print" button and the survey end.
Can I improve the PDF layout ? Add a logo, remove the survey ID and so on ?
#4 : confirmation email are sent to who ? If I don't ask to the user email, Limesurvey will never guess it, should I add a question with a specific name to setup confirmation email ?
Thanks by advance for all your advices, links, forum topics, examples, etc !
I'm new with Limesurvey and I have a bunch of n00b questions
First of all, I'm not using Limesurvey as a survey manager, I'm using it to build a registration form to small event for a friend.
So far, I've setup the latest Limesurvey and my first tests are running fine, I already reach 60% of my goal in a few minutes !
Now, I want to improve my survey and I would like to know if I can do it with Limesurvey :
#1 : I want to store data from 2 different fields to a same column in the database *OR* I want to change the question in function of the previous answer (only the question text), is it possible ?
I tried "replacement field" but I can't select my previous question in the list.
I also tried "conditions" but it will create another question and store the result to another database field
#2 : date field : I want the user enter his birthday, I add a "time/date" type, but I only want to see the date in the database, not the time, i tried to "Date/Time format" to dd/mm/yyyy without success. I also wanted to set a maximum and minimum date "01/01/1990" and "01/01/2010" : didn't worked, Limesurvey understood those dates as year 3074 or so...
#3 : I want to send a confirmation email to the user and ask him to print his survey summary. Can I join a PDF to the confirmation email or, at least, a direct link to the PDF ?
For the moment, I can only ask to click on the "print" button and the survey end.
Can I improve the PDF layout ? Add a logo, remove the survey ID and so on ?
#4 : confirmation email are sent to who ? If I don't ask to the user email, Limesurvey will never guess it, should I add a question with a specific name to setup confirmation email ?
Thanks by advance for all your advices, links, forum topics, examples, etc !
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11637
- Thank you received: 2737
9 years 8 months ago #111261
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 A few noob questions : PDF generator, birth date, confirmation email
#1: You can't store answers from different questions to the same column. This wouldn't make any sense for a survey. However, you can change the question text based on the answer to the previous question. You could do this with the Expression Manager (EM) and I think the word would be tayloring.
#2: Have a look at the manual. I would assume that you are using the wrong date format ( manual.limesurvey.org/Question_type_-_Date ). Seems that it needs to be YYYY-MM-DD
#2: Have a look at the manual. I would assume that you are using the wrong date format ( manual.limesurvey.org/Question_type_-_Date ). Seems that it needs to be YYYY-MM-DD
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.
- limes4LN
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 25
- Thank you received: 0
9 years 8 months ago #111267
by limes4LN
Replied by limes4LN on topic A few noob questions : PDF generator, birth date, confirmation email
#2 : ha yes, you are right, the date limit format is not the same as the default survey date format : it's YYYY-MM-DD only.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
9 years 8 months ago #111276
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 A few noob questions : PDF generator, birth date, confirmation email
#1 : you CAN store answer from 2 question in another question : Equation question (
manual.limesurvey.org/Question_type_-_Equation
) type is done for this
#1 : to update a answerto a question : you have some example in manual.limesurvey.org/Expression_Manager..._Assignment_Operator
#3 : not in core, but you can update LimeSurvey system if you want
#4 : confirmation email are sent only with token survey.
#1 : to update a answerto a question : you have some example in manual.limesurvey.org/Expression_Manager..._Assignment_Operator
#3 : not in core, but you can update LimeSurvey system if you want
#4 : confirmation email are sent only with token survey.
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 topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11637
- Thank you received: 2737
9 years 8 months ago #111290
by holch
Good one, Denis!
I only thought of the normal Limesurvey behaviour and did not think of a workaround via EM.
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 A few noob questions : PDF generator, birth date, confirmation email
#1 : you CAN store answer from 2 question in another question : Equation question
Good one, Denis!
I only thought of the normal Limesurvey behaviour and did not think of a workaround via EM.
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.
- limes4LN
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 25
- Thank you received: 0
9 years 8 months ago #111292
by limes4LN
Replied by limes4LN on topic A few noob questions : PDF generator, birth date, confirmation email
Thanks for your replies. I've read and read again the doc, it's very cristal clear for me, I think the doc refer to an old limesurvey option, no ?
Well, here is my 2 examples if you can help me.
for #1
Q1 : How many people will come?
A1 : One | Two | 3 or more
Q2 : IF A1 = One, then
Q2 = "What is your name?"
else
Q2 = "What is your group name?"
ENDIF
How can I do that?
OR
I have want Q1 and Q2 store result in the same field, but I really don't understand how to do it, can you share with me a simpler example ?
Thanks !
Well, here is my 2 examples if you can help me.
for #1
Q1 : How many people will come?
A1 : One | Two | 3 or more
Q2 : IF A1 = One, then
Q2 = "What is your name?"
else
Q2 = "What is your group name?"
ENDIF
How can I do that?
OR
I have want Q1 and Q2 store result in the same field, but I really don't understand how to do it, can you share with me a simpler example ?
Thanks !
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11637
- Thank you received: 2737
9 years 8 months ago #111293
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 A few noob questions : PDF generator, birth date, confirmation email
In this case I would only change the question text via EM.
There should be some good examples how to do this in the documentation.
Someting like: if Q1==1 write "name" else write "group name".
I think this should help: manual.limesurvey.org/Expression_Manager...swers.2C_and_Reports
There should be some good examples how to do this in the documentation.
Someting like: if Q1==1 write "name" else write "group name".
I think this should help: manual.limesurvey.org/Expression_Manager...swers.2C_and_Reports
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.
- limes4LN
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 25
- Thank you received: 0
9 years 8 months ago #111348
by limes4LN
Replied by limes4LN on topic A few noob questions : PDF generator, birth date, confirmation email
Can I change the number of answers from a radio list in function of the previous question ?
Example :
Q1 : Are you ?
A1 : A boy | A girl ?
Q2 : Choose your sport :
A2 IF it's a boy
IF it's a girl
Both have "Tennis" in commun
Example :
Q1 : Are you ?
A1 : A boy | A girl ?
Q2 : Choose your sport :
A2 IF it's a boy
- Socker
- Rugby
- Tennis
IF it's a girl
- Dance
- Seam
- Tennis
Both have "Tennis" in commun
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
9 years 8 months ago - 9 years 8 months ago #111349
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 A few noob questions : PDF generator, birth date, confirmation email
Yes,
2 solution:
Use same question for Boy and Girl, and put this in answer text:
{if(Q1=="boy","Socker",if(Q1=="girl","Dance",""))}
But for analysis : i think it's best to use 2 question with condition.
Alternative solution with different code (here 5 answer) try using some workaround limesurvey.sondages.pro/676785.html?newtest=Y&lang=fr
Denis
2 solution:
Use same question for Boy and Girl, and put this in answer text:
{if(Q1=="boy","Socker",if(Q1=="girl","Dance",""))}
But for analysis : i think it's best to use 2 question with condition.
Alternative solution with different code (here 5 answer) try using some workaround limesurvey.sondages.pro/676785.html?newtest=Y&lang=fr
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.
Last edit: 9 years 8 months ago by DenisChenu.
The topic has been locked.
- limes4LN
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 25
- Thank you received: 0
9 years 8 months ago #111352
by limes4LN
Replied by limes4LN on topic A few noob questions : PDF generator, birth date, confirmation email
OK, got it, but If there is different number of answers for boy and girl ?
I've tested it : got empty radio button
In the radio list, I put :
A1 : {if(Genre.code=='A2','FOO1','BAR1')}
A2 : {if(Genre.code=='A2','FOO2','BAR2')}
A3 : {if(Genre.code=='A2','FOO3','')}
A3 remains empty, I would like to make disappear, is it possible ?
I've tested it : got empty radio button
In the radio list, I put :
A1 : {if(Genre.code=='A2','FOO1','BAR1')}
A2 : {if(Genre.code=='A2','FOO2','BAR2')}
A3 : {if(Genre.code=='A2','FOO3','')}
A3 remains empty, I would like to make disappear, is it possible ?
The topic has been locked.
- limes4LN
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 25
- Thank you received: 0
9 years 8 months ago #111353
by limes4LN
Replied by limes4LN on topic A few noob questions : PDF generator, birth date, confirmation email
Maybe "Array filter exclusion" could help me : checking !
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11637
- Thank you received: 2737
9 years 8 months ago #111354
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 A few noob questions : PDF generator, birth date, confirmation email
Use two different questions and only show the questions relevant for boy or for girl.
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.