Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: A few noob questions : PDF generator, birth date, confirmation email

A few noob questions : PDF generator, birth date, confirmation email 2 months 3 weeks ago #111252

  • limes4LN
  • limes4LN's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 16
  • Karma: 0
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 !
The administrator has disabled public write access.

A few noob questions : PDF generator, birth date, confirmation email 2 months 3 weeks ago #111261

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2852
  • Thank you received: 359
  • Karma: 124
#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
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

A few noob questions : PDF generator, birth date, confirmation email 2 months 3 weeks ago #111267

  • limes4LN
  • limes4LN's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 16
  • Karma: 0
#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 administrator has disabled public write access.

A few noob questions : PDF generator, birth date, confirmation email 2 months 3 weeks ago #111276

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6451
  • Thank you received: 844
  • Karma: 249
#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.
The administrator has disabled public write access.

A few noob questions : PDF generator, birth date, confirmation email 2 months 3 weeks ago #111290

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2852
  • Thank you received: 359
  • Karma: 124
#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.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

A few noob questions : PDF generator, birth date, confirmation email 2 months 3 weeks ago #111292

  • limes4LN
  • limes4LN's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 16
  • Karma: 0
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 !
The administrator has disabled public write access.

A few noob questions : PDF generator, birth date, confirmation email 2 months 3 weeks ago #111293

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2852
  • Thank you received: 359
  • Karma: 124
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
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

A few noob questions : PDF generator, birth date, confirmation email 2 months 3 weeks ago #111348

  • limes4LN
  • limes4LN's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 16
  • Karma: 0
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
  • Socker
  • Rugby
  • Tennis

IF it's a girl
  • Dance
  • Seam
  • Tennis

Both have "Tennis" in commun
The administrator has disabled public write access.

A few noob questions : PDF generator, birth date, confirmation email 2 months 3 weeks ago #111349

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6451
  • Thank you received: 844
  • Karma: 249
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
Last Edit: 2 months 3 weeks ago by DenisChenu.
The administrator has disabled public write access.

A few noob questions : PDF generator, birth date, confirmation email 2 months 3 weeks ago #111352

  • limes4LN
  • limes4LN's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 16
  • Karma: 0
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 ?
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 1.002 seconds
Donation Image