Login Form

#181 – Email template Author

Posted in ‘Pre-Sales Requests’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Tuesday, 01 April 2014 15:19 AEDT
burst24
 Hello

I want to build a survey of customers and after it's finished to make a lottery based on the id's of their surveys. Can i create a template email for the authors including the survey id so they know if they have the lucky number?
 
Tuesday, 01 April 2014 19:52 AEDT 15'
Tim
Everything Bundle, BF Quiz Plus 3 Years, BF Survey 12 Months
Hi Chris,
Thank you for your interest in BF Survey.
The email template in BF Survey Plus can currently insert Category, Name, Company and Email fields into the subject or description. It would be possible to also insert the id, however you'd need to make a minor modification to /components/com_bfsurvey_plus/controller.php
In the triggerEmails function around line 1029, you'd need to add something like:

$myemail[0]->description=preg_replace('/{id}/', $session->get('referenceNo') , $myemail[0]->description); // insert id

Alternatively, the new BF Survey based rewritten using FOF (currently in Alpha testing) can insert any field from your answer table. The id field in this case is in the form bfsurvey_1result_id, where 1 is the category id number. So could then insert {bfsurvey_1result_id} into an email template.
http://tamlynsoftware.com/download/bf-survey.html

Note that id allocation is sequential, so you'd probably want to prevent multiple entries to avoid people trying to rig the outcome to get an exact id number to win.

regards

Tim
Follow us on twitter http://twitter.com/tamlynsoftware
Tuesday, 01 April 2014 20:50 AEDT
burst24
Thank you very much for your prompt reply!
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.
Go to top