- Posts: 17
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Confirmation email attachment and conditional filter limeSurvey V5
- ephe
- Topic Author
- Offline
- New Member
Your LimeSurvey version: 5.3.9+220411
Own server or LimeSurvey hosting: Own server
==================
Hello,
I am having a problem with handling attachments in a survey confirmation email and using the conditional attachment filter.
My survey sends a confirmation email to the participant when they have completed the survey but I can't condition the sending of one (or more) attachments to this email based on the answer given to a question in the form.
For example, the last question in my survey has the number "7896", the code "INS" and it is a multiple choice question with 3 choices coded as "A1", "A2" and "A3".
I would like that if the participant answers "A1", he receives in his confirmation email, the desired attachment otherwise he receives nothing. I tried the filters :
- ((INS.NAOK == "A1")), with or without parenthesis, with or without braces, single quote or double quote
- ((qid7896.NAOK == "A1")), with or without parenthesis, with or without braces, single quote or double quote
I should also point out that I had already used this feature and it worked very well. But we were in version 3 of LimeSurvey, today we are on version 5 (as I said before) maybe it is related?
Is this feature buggy with this version? If so, obviously it should be fixed but who should I contact? If not, how can I write correctly the conditional filter so that my attachment(s) will be attached to my confirmation email only when certain response conditions are met?
Kind regards to all of you.
Please Log in to join the conversation.
- davebostockgmail
- Offline
- Elite Member
- Posts: 166
- Thank you received: 26
for your first option it should read {if(INS_A1.NAOK=="Y",Do something,Do something else)}
Please Log in to join the conversation.
- ephe
- Topic Author
- Offline
- New Member
- Posts: 17
- Thank you received: 1
I tested it in the confirmation mail content (and with the conditional filter of attachments) and the expression script validator doens't accept your one (refer to the first attachment of this post).
I build "my" conditionnal expression with the limeSurvey conditional filter builder and as i first said, it worked when i used it to display or not a next question.
Or i want to use the feature of conditionnal filter of attachments (and i used perfectly with the limeSurvey V3). The one you can see on my second attachment of this post
Please Log in to join the conversation.
- davebostockgmail
- Offline
- Elite Member
- Posts: 166
- Thank you received: 26
Please Log in to join the conversation.
- ephe
- Topic Author
- Offline
- New Member
- Posts: 17
- Thank you received: 1
Please Log in to join the conversation.
- davebostockgmail
- Offline
- Elite Member
- Posts: 166
- Thank you received: 26
Sorry
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
- Posts: 12790
- Thank you received: 3940
But reading this
you want to conditionally "attach" something?and using the conditional attachment filter.
This is different from all images you showed.
And in into the confirmation mails of your survey there was no additional code inserted
Please, tell exactly what you want to do.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- ephe
- Topic Author
- Offline
- New Member
- Posts: 17
- Thank you received: 1
I want to conditionally "attach" something, yes ! With the feature provide by limeSurvey i already used previously with the v3 of LimeSurvey :I am having a problem with handling attachments in a survey confirmation email and using the conditional attachment filter.
My survey sends a confirmation email to the participant when they have completed the survey but I can't condition the sending of one (or more) attachments to this email based on the answer given to a question in the form.
And i show this in the second image posted with my response to th first answer ( 2022-04-14_08h46_31.png ).I should also point out that I had already used this feature and it worked very well. But we were in version 3 of LimeSurvey, today we are on version 5 (as I said before) maybe it is related?
You can see what i want and what doesn't work (conditionnal filters for attachment mail) with the "mytest.lss" i posted earlier.
Please Log in to join the conversation.
- ephe
- Topic Author
- Offline
- New Member
- Posts: 17
- Thank you received: 1
Please Log in to join the conversation.
- ephe
- Topic Author
- Offline
- New Member
- Posts: 17
- Thank you received: 1
Conditionnal attachment worked for you with my "mytest.lss" ?I am not seeing an issue with this ... I am using Version 5.3.9
Sorry
If you answered the A1, a confirmation mail was sent to you with only one attachment (Myfile1.txt) and If you answered the A2, a confirmation mail was sent to you with only one attachment (Myfile2.txt) ?
You haven't receive a confirmation mail with all of the attachment saved in the confirmation mail feature ?
Please Log in to join the conversation.