Notifications - User Confirmation

Permalink Browser Info Environment
IS it possible to have the form data included in the user confirmation email?

Type: Discussion
Status: New
bgriffin
View Replies:
jgarcia replied on at Permalink Reply
jgarcia
Yes, as long as you have Data Display as well, the confirmation email can be set up similarly to a Data Display template. I've not documented this feature yet, but it certainly can be done.
bgriffin replied on at Permalink Reply
bgriffin
I do have Data Display installed also.

# concrete5 Version
5.5.2

# concrete5 Packages
Advanced Forms (1.7.3), Data Display (2.5.1), eCommerce (2.7.1), Login (1.1), Luminosity Theme (1.5.1

Looking forward to the documentation if it available.
jgarcia replied on at Permalink Reply
jgarcia
If you're familiar with creating a Data Display template, it's the exact same structure - you just have to input the placeholder data manually. I'll see if I can make this a little more user-friendly in an upcoming version.
bgriffin replied on at Permalink Reply
bgriffin
I am somewhat familiar with Data Display Templates, I have created one and it does show data from the form.
Where would I put the placeholders to have them show up in the user confirmation email?
bgriffin replied on at Permalink Reply
bgriffin
Is thIs information available anytime before the next release?
jgarcia replied on at Permalink Reply
jgarcia
Advanced Forms -> Notifications -> Message (on the User Confirmation tab).
bgriffin replied on at Permalink Reply
bgriffin
Yes I see the place to add a message. Is this also where we would put the new data display to include the form data? What is the format for including the data display in the user message?
jgarcia replied on at Permalink Reply
jgarcia
It's the same as the Data Display templates themselves. <field name="Whatever" />.
kellyelton replied on at Permalink Reply
kellyelton
Or incase you don't want to have to shell out $75 bucks, modify the file packages/sixeightforms/models/answer_set.php.

replace the function
public function sendConfirmation() {
         $f = sixeightform::getByID($this->fID);
         $fields = $f->getFields();
         if(Package::getByHandle('sixeightdatadisplay')) {
            $ddBT = BlockType::getByHandle('sixeightdatadisplay');
            $body = $ddBT->controller->generateTemplateContent($f->properties['confirmationEmail'],$f->getFields(),$this);
            $body = str_replace('<?php  xml version="1.0"?>','',$body);
            $body = str_replace('<?php xml version="1.0"?>','',$body);
            $body = str_replace('<root>','',$body);
            $body = str_replace('</root>','',$body);
            $body = str_replace('<root></root>','',$body);
            $body = str_replace('<root ></root>','',$body);
         } else {
            $body = $f->properties['confirmationEmail'];
         }


with
public function sendConfirmation() {
         $f = sixeightform::getByID($this->fID);
         $fields = $f->getFields();
         if(Package::getByHandle('sixeightdatadisplay')) {
            $ddBT = BlockType::getByHandle('sixeightdatadisplay');
            $body = $ddBT->controller->generateTemplateContent($f->properties['confirmationEmail'],$f->getFields(),$this);
            $body = str_replace('<?php  xml version="1.0"?>','',$body);
            $body = str_replace('<?php xml version="1.0"?>','',$body);
            $body = str_replace('<root>','',$body);
            $body = str_replace('</root>','',$body);
            $body = str_replace('<root></root>','',$body);
            $body = str_replace('<root ></root>','',$body);
         } else {
            $body = $f->properties['confirmationEmail'];
            foreach($fields as $field)


Then in your notification e-mail template use %%fieldname%% to get the fields value.
JonRimmer replied on at Permalink Reply
JonRimmer
Hi Kelly

Just wanted to setup as you have instructed and was wondering where I find the email template to add %%fieldname%%

many thanks

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.