Welcome to the LimeSurvey Community Forum

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

Confirmation Email; Token Text is highlighted

  • Niall01
  • Niall01's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #127535 by Niall01
Hi,

I've set a lime survey form up to work as an ethics questionnaire. One of the features I've got into the latest version is automatic confirmation emails (by inserting answer tokens appropriately). It's functioning perfectly but the only thing is that the token text is highlighted yellow (see attachment), which makes the output look untidy. I've been in the source code editor but I can't see anyway to change it, is there something I can do to make it come up as black text on white like the rest of the email.

Cheers
Niall
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 6 months ago #127537 by holch
There must be some kind of code that causes this highlighting. Either in the editor for the email template or in the token table.

Is there any way to post the source code of the email template? Where do these text come from? how are they inserted into the email?

Is there a way to show the source code of this email here?

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • Niall01
  • Niall01's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago - 8 years 6 months ago #127541 by Niall01
Replied by Niall01 on topic Confirmation Email; Token Text is highlighted
I agree. Here's the code as seen in the source editor. It is a real mess, I keep cleaning it up when I go through it but it always defaults back so I guess something somewhere is overriding it.
Code:
<img alt="" src="http://newcastle-ethics.limequery.com/upload/surveys/256724/images/NULogo.jpg" style="width: 219px; height: 77px; float: right;" />
<p>
   </p>
<p>
   </p>
<p>
   </p>
<p>
   </p>
<p>
   </p>
<p>
   </p>
<p>
  <span style="font-size:11px;"><span style="font-family:arial,helvetica,sans-serif;">Thank you for submitting the ethical approval form for the project '<span class="ckelimereplacementfields1">{INSERTANS:256724X481X6034} </span></span>'. Expected to run from <span style="color: rgb(34, 34, 34); line-height: 115%; background: white;">{INSERTANS:256724X481X6049}</span><span style="color: rgb(34, 34, 34); line-height: 115%;"> to <span style="background: white;">{INSERTANS:256724X481X6050}.</span></span></span></p>
<p>
  <span style="font-size:11px;"><span style="font-family:arial,helvetica,sans-serif;">{INSERTANS:256724X499X6140}{INSERTANS:256724X499X6141}{INSERTANS:256724X499X6142} {INSERTANS:256724X499X6143}{INSERTANS:256724X499X6144}{INSERTANS:256724X499X6145}{INSERTANS:256724X499X6146}{INSERTANS:256724X499X6147}</span></span></p>
<p>
  <span style="font-size:11px;"><span style="font-family:arial,helvetica,sans-serif;">Best wishes</span></span></p>
<p>
  <span style="font-size:11px;"><span style="font-family:arial,helvetica,sans-serif;">Policy &amp; Information Team, Newcastle University Research Office<br />
  <a href="mailto:r***********uk">r**********uk</a></span></span></p>
Last edit: 8 years 6 months ago by DenisChenu. Reason: [code] + remove email
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 6 months ago #127542 by holch
The problem seems to be this bit of code:
Code:
<span class="ckelimereplacementfields1">

Later there are a few spans defined to make the background white again. Take all theses spans out, they are probably causing the problems. Try to avoid the WYSIWYG-Editor, because they sometimes leave code that can make things complicated, especially when there have been many edits.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: Niall01
The topic has been locked.
  • Niall01
  • Niall01's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago - 8 years 6 months ago #127549 by Niall01
Replied by Niall01 on topic Confirmation Email; Token Text is highlighted
Thanks for the suggestion. It's made it lots better but the title still appears highlighted. This is the new source code.
Code:
<img alt="" src="http://newcastle-ethics.limequery.com/upload/surveys/256724/images/NULogo.jpg" style="width: 219px; height: 77px; float: right;" />
<p>
   </p>
<p>
   </p>
<p>
   </p>
<p>
   </p>
<p>
   </p>
<p>
   </p>
<p>
  <span style="font-size:11px;"><span style="font-family:arial,helvetica,sans-serif;">Thank you for submitting the ethical approval form for the project '{INSERTANS:256724X481X6034}'. Expected to run from {INSERTANS:256724X481X6049}to{INSERTANS:256724X481X6050}.</span></span></p>
<p>
  {INSERTANS:256724X499X6140}{INSERTANS:256724X499X6141}{INSERTANS:256724X499X6142} {INSERTANS:256724X499X6143}{INSERTANS:256724X499X6144}{INSERTANS:256724X499X6145}{INSERTANS:256724X499X6146}{INSERTANS:256724X499X6147}</p>
<p>
  <span style="font-size:11px;"><span style="font-family:arial,helvetica,sans-serif;">Best wishes</span></span></p>
<p>
  Policy &amp; Information Team, Newcastle University Research Office<br />
  <a href="mailto:r************.uk">r*********.uk</a></p>
Last edit: 8 years 6 months ago by DenisChenu. Reason: [code] + remove email
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 6 months ago #127593 by tpartner
Replied by tpartner on topic Confirmation Email; Token Text is highlighted
That highlighting is inserted by Expression manager when it finds an error. There is something wrong with the variable "INSERTANS:256724X481X6034".

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: Niall01
The topic has been locked.
  • Niall01
  • Niall01's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #127627 by Niall01
Replied by Niall01 on topic Confirmation Email; Token Text is highlighted
Ok. That at least makes me feel better that it's not a format issue. I'll check through and see if I can't find out what the issue you.

Many thanks everyone.
Niall
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose