View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
12222 | Bug reports | Survey participants (Tokens) | public | 2017-03-23 10:05 | 2020-03-13 18:47 |
Reporter | pmonstad | Assigned To | |||
Priority | none | Severity | partial_block | ||
Status | closed | Resolution | open | ||
Product Version | 2.64.x | ||||
Summary | 12222: Bad limereplacement fiels for token attribute in admin notification | ||||
Description | I have added an extra attribute field in Token Management. I have inserted this attribute in mail template for the survey (administrator notify). The attribute data is not shown in the mail. What I see is Denne er fra: ATTRIBUTE_1 | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 8 | ||||
Complete LimeSurvey version number (& build) | 2.64.1+170310 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | all | ||||
Database type & version | all | ||||
Server OS (if known) | all | ||||
Webserver software & version (if known) | all | ||||
PHP Version | all | ||||
I think you need {TOKEN:ATTRIBUTE_1} |
|
I see that if you add the attribute via the button in the html editor, then it only puts {ATTRIBUTE_1}. So either {ATTRIBUTE_1} needs to function the same as {TOKEN:ATTRIBUTE_1} or the button needs to insert the one with the token prefix. |
|
Also pmonstad, sorry if I sent you some emails while I was testing before I realized I needed to change it :o |
|
Thanks! I inserted TOKEN:ATTRIBUTE_1 and it now shows the attribute correctly. I guess this is a bug? When I Insert A Placeholder from the HTML editor (mail templates) the TOKEN: is not inserted. |
|
About TOKEN: needed : It's not a bug : maybe a doc issue but not a bug. When sending invitation/reminder : Survey is not here. BUT : when sending confirmation and admin notification : survey is here. And in survey : then TOKEN:ATTRIBUTE_1 mean the token value of attribute 1, and ATTRIBUTE_1 mean the subquestion 1 of ATTRIBUTE question. Manual is clear https://manual.limesurvey.org/Survey_participants#Email_placeholders |
|
Even if this is not a bug it is not very obvious for a user to know how to use am extra attribute token placeholder. It exists is the placeholder list and most of us will expect it to work without adding the TOKEN: manually. |
|
But it CAN NOT work , and it never work. If HTML editor lime replacement field don't add TOKEN: it's a bug, else it's not a bug. You can create a FIRTSNAME question, if we force FIRTSNAME to be TOKEN:FIRTSNAME ! this is a bug. |
|
Ok, so if I understand correctly: For Confirmation/Basic admin notification/Detailed admin notification, token attributes must be in the format TOKEN:ATTRIBUTE_# because the survey data is also present. When editing Invitation/Reminder, there is no survey data, and token attributes must be in the format ATTRIBUTE_#. So the only bug here is that the HTML editor doesn't account for the two cases above. |
|
If this is the case it should be possible to add the prefix TOKEN: if editing template for admin notification? If this is not possible the attribute fields should not be shown in the placeholders list. Then an advanced user can read the documentation how to add it manually. That is a better solution than providing the attribute fields in the list and showing wrong results in the mail. This will be counted as a bug by most users... |
|
Hi, I just test popup HTML editor in admin_notification fiorstname is OK (use {TOKEN:FIRSTNAME} but attribute is not OK (use {ATTRIBUTE_1}) then issue confirmed |
|
This version of LimeSurvey is not longer supported. Please check so that the issue is fixed in a more recent version of LimeSurvey. If it's not, please reopen this bug report. Thank you. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2017-03-23 10:05 | pmonstad | New Issue | |
2017-03-23 10:05 | pmonstad | File Added: survey_archive_593937.lsa | |
2017-03-23 23:47 | mfavetti | Note Added: 43315 | |
2017-03-23 23:51 | mfavetti | Note Added: 43316 | |
2017-03-23 23:53 | mfavetti | Note Added: 43317 | |
2017-03-24 08:26 | pmonstad | Note Added: 43322 | |
2017-03-24 09:21 | DenisChenu | Note Added: 43323 | |
2017-03-24 14:43 | pmonstad | Note Added: 43333 | |
2017-03-24 14:55 | DenisChenu | Note Added: 43334 | |
2017-03-24 18:57 | mfavetti | Note Added: 43338 | |
2017-03-24 19:18 | pmonstad | Note Added: 43340 | |
2017-03-25 10:40 | DenisChenu | Note Added: 43343 | |
2017-03-25 10:41 | DenisChenu | Summary | Attribute field not working in mail => Bad limereplacement fiels for token attribute in admin notification |
2017-03-25 10:41 | DenisChenu | Status | new => confirmed |
2020-03-13 18:47 | c_schmitz | Note Added: 56505 | |
2020-03-13 18:47 | c_schmitz | Status | confirmed => closed |