Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

issue with admin notifications - message too long?

  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
7 years 7 months ago #141458 by tammo
Strange, this does not work. html_entity_decode decodes to:

Confirmation mail text (in HTML) htmlentities( ' < p > Hiereenwatlangeretekst < / p > < p > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- < / p > < p > http : / / www.toolsforresearch.com < / p > < p > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- < / p > ' )


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
7 years 7 months ago #141459 by tammo
It works when I place this in the equation text:
Code:
<p>Hier een wat langere tekst</p>
 
<p>--------------------------------------</p>
 
<p>http://www.toolsforresearch.com</p>
 
<p>--------------------------------------</p>

but it fails when I put this in the equation text:
Code:
{htmlentities('<p>Hier een wat langere tekst</p>
 
<p>--------------------------------------</p>
 
<p>http://www.toolsforresearch.com</p>
 
<p>--------------------------------------</p>')}

HTML for token emails is switched on. Using 2.50 GIT


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 7 months ago #141460 by tpartner
Here is a small sample survey with the basic admin notification set to include your variable text - you will need to change the "Send basic admin notification email to" setting.

Click 1 in Q1 to have the variable text included in the notification email.



File Attachment:

File Name: limesurvey...29-2.lss
File Size:15 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: tammo
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
7 years 7 months ago - 7 years 7 months ago #141461 by tammo
Wow, this is something that has cost some hours. Somehow your example worked perfectly, while what I typed looked the same. I guess it must have been a keyboard issue, encoding of the quotes or something. After typing in again (keyboard US-English) it works!

en.wikipedia.org/wiki/Standing_on_the_shoulders_of_giants


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Last edit: 7 years 7 months ago by tammo. Reason: typo
The topic has been locked.
More
7 years 7 months ago #141475 by jelo

tammo wrote: I guess it must have been a keyboard issue, encoding of the quotes or something. After typing in again (keyboard US-English) it works!

Sounds like quoting hell. It's a nice hobby for some of us ;-) Will you open a bug ticket? Or isn't that currently a workaround?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
7 years 7 months ago #141477 by tammo
This was already a workaround: putting HTML text (without variables) in an equation and then referring to that equation. If this grows huge, for each respondent the same text is saved in his/her record in the database. I find that a bit clumsy.

For now (and with a short text) this may work. For following implementations I will look for another solution. Perhaps try to call a text file.


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
More
7 years 7 months ago #141479 by jelo

tammo wrote: This was already a workaround: putting HTML text (without variables) in an equation and then referring to that equation. If this grows huge, for each respondent the same text is saved in his/her record in the database. I find that a bit clumsy.

Yepp, and that means opening a bug report ;-) Like I have done with the EndURL issue with EM. I haven't looked into the LS from tpartner. Would be interesting to know if he sees the current behavior as a bug or as a missing feature.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
7 years 7 months ago #141491 by tammo
You are right, Jelo. I will write a bug report. I hope I can reproduce the error...

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 7 months ago #141535 by tpartner

I haven't looked into the LS from tpartner. Would be interesting to know if he sees the current behavior as a bug or as a missing feature.

I would probably view it as a bug. In my opinion, EM should parse the HTML correctly, no matter where used.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose