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 - 7 years 7 months ago #141428 by tammo
Hi Jelo, thanks for your respons. I am trying to send out a confirmation mail with a conditional text part at the end:

- - - -
Code:
Confirmation mail text (in HTML)
 
{if((pg12)=='N','<br/><br/>- - - -<br />Here I want to write some text and on the next line a link.<br />
<a href="http://www.toolsforresearch.com">Click here!</a><br /> - - - -',' ')}
- - - -
In HTML mail the the complete expression is sent out, not the calculated result of it. I tried 2.06, 2.50 and I am wondering what I am doing wrong.

Using inline editor, popup editor, all same result: expression is in the mail. When I switch to non-HTML mails, same result. Logged in as super admin.


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Last edit: 7 years 7 months ago by tammo.
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
7 years 7 months ago #141434 by Mazi

jelo wrote: I think a tab with html/plain which switches between the Editor and a simple form would work.

Isn't that what the "pop-up" mode of the editor does? By default you see the source code view but can click the pencil icon to open the editor?!

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
7 years 7 months ago - 7 years 7 months ago #141435 by Mazi
tammo,

1. Always use ....NAOK when referring to certain questions. It is a safer version if responses can be empty.

2. Did you check for syntax errors?

3. Try removing "(" and ")" around "pg12":
{if(pg12.NAOK=='N','<br/><br/>- - - -...

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Last edit: 7 years 7 months ago by Mazi.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 7 months ago #141444 by tpartner
Tammo, try placing the variable text in an equation question and then reference that question in the email.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
7 years 7 months ago #141450 by jelo

Mazi wrote: Isn't that what the "pop-up" mode of the editor does?

That is correct, but the question is what happens in LS afterwards. Why was disabling the HTML editor recommended instead of just using the other view? We once had a "smart ass" filtering in the EndURL field, where no editor was involved. When using EM sometimes the whole URL got messed up. Since there was no bug report there might be no bug at all.

Tammo, which version are you using?

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 #141451 by tammo
2.05 b140821 and 2.50GIT


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 #141452 by jelo

tpartner wrote: Tammo, try placing the variable text in an equation question and then reference that question in the email.

Good idea. I remember doing just that to workaround the issue with the filtered EM code inside the EndURL field.
Try that Tammo. Will narrow down the issue.

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 #141453 by tammo
Great idea. I even works! :)


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 #141454 by tammo
But still struggling with HTML, though: replacing equation text in the mail works, but HTML tags are lost. Still investigating, but 1 step further now. Thanks.


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 #141455 by jelo

tammo wrote: Great idea. I even works! :)

If it works the issue is not with the editor itself but with the php code handling the EM stuff.

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 #141456 by tammo
I guess the EM does not swallow line breaks...


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

But still struggling with HTML, though: replacing equation text in the mail works, but HTML tags are lost.

Try with htmlentities() and html_entity_decode(), something like this post - www.limesurvey.org/forum/can-i-do-this-w...ge-won-t-load#141000

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