Welcome, Guest
Username: Password: Remember me

TOPIC: CC added to Confirmation Email -- Update token email with javascript

CC added to Confirmation Email -- Update token email with javascript 2 years 4 months ago #81732

  • CmeLime
  • CmeLime's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Hi,

I am attempting to CC the confirmation email on the survey. The cc email address is entered by the user in response to a question, and on the next question, I have this javascript:

<script type="text/javascript" charset="utf-8">
$(document).ready(function() {

"{TOKEN:EMAIL}" = "{TOKEN:EMAIL}"+","+"{TOKEN:EMAIL}";
document.write ("{TOKEN:EMAIL}");

});
</script>

however, nothing appears to happen...

I tested it with alert("hello"); and that displays the alert message fine. If I put alert("{TOKEN:EMAIL}"); that also fails (does nothing). The survey proceeds as if it isn't there.

Thanks for such an amazing and well crafted application!! My survey is wonderful, it works incredibly well (thanks for some work arounds in the wiki) including conditional links in the confirmation email and response texts.
The administrator has disabled public write access.

Re: CC added to Confirmation Email -- Update token email with javascript 2 years 4 months ago #81737

  • Mazi
  • Mazi's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 5331
  • Thank you received: 296
  • Karma: 249
Why don't you add the additional email address at the survey settings? There you should be able to list several email addresses separated by "," or ";".

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: CC added to Confirmation Email -- Update token email with javascript 2 years 4 months ago #81742

  • CmeLime
  • CmeLime's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Thanks for that suggestion. My apology. The situation is that a person (call them facilitator) is using the survey while screen sharing/telephone call with the person being sruveyed. There are many facilitators, so a question in the survey requests the facilitor's email address which is the address I'd like to CC during survey operation.

Thanks again for a great application!
The administrator has disabled public write access.

Re: CC added to Confirmation Email -- Update token email with javascript 2 years 4 months ago #81745

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
You can definitely send the facilitator a cc of the basic or detailed admin notification email. Simply add ;{FacilitatorsEmail} to the end of the appropriate Notification and Data Management field (documentation).

Sounds like you want to add a cc to the confirmation email which thanks the user for their participation.

A logical way to do that might be to add ;{FacilitatorsEmail} to the end of the email address for the subject in the tokens table, but that doesn't work at present (but you could propose it as an enhancement request).

However, the basic or detailed admin notification email should be adequate for your needs. If there is some text from the confirmation email you need, you can edit the admin notification emails to include that text.
The administrator has disabled public write access.
The following user(s) said Thank You: CmeLime

Re: CC added to Confirmation Email -- Update token email with javascript 2 years 4 months ago #81829

  • CmeLime
  • CmeLime's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Thanks one and all....used the documented (ouch, sorry for the RTFM) cc and it works great that way. Will suggest the cc ability for the confirmation email too
The administrator has disabled public write access.

Re: CC added to Confirmation Email -- Update token email with javascript 2 years 4 months ago #82007

  • Mazi
  • Mazi's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 5331
  • Thank you received: 296
  • Karma: 249
CmeLime wrote:
Thanks one and all....used the documented (ouch, sorry for the RTFM) cc and it works great that way. Will suggest the cc ability for the confirmation email too
You're welcome :-)

If our hints have been helpful and you enjoy limesurvey please consider a donation to give Limesurvey a future .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.103 seconds
Donation Image