Include fields in email - DB Record Loader

momentis 13 Apr, 2012
I am using a DB Record Loader to pull a record from my database. I am using a custom code action, however, to display the data. I want to include an "Email Me This" button on the form, which will send the user his/her data, as displayed on the screen. However, I cannot get the data to add to the email. I have tried calling the fields the way I do in the custom code, like:

<?php 
    $purchquota = number_format($form->data['acct_purchase_quota'],2);
    echo $purchquota;
    ?>


And I have tried to insert the fields by using the curly brackets. Neither works. What am I missing?
GreyHead 13 Apr, 2012
Hi Rick,

Either you need to add the data in hidden inputs; or perhaps better, use a 'Data to Session' action to save it when the form is loaded and a 'Session to Data' action to get it back if they click the Email button. You need to mtach the session keys if these are different forms.

Bob
momentis 13 Apr, 2012
Thanks for the help! I think I will use hidden inputs. I need to get this out, and I do not have time to learn what and how to use the 'Session Data' functions! LOL

Old dog and new tricks, you know :wink:
This topic is locked and no more replies can be posted.