TOPIC:

Radio group answer label in admin email 2 months 2 weeks ago #263960

  • Topic Author
  • davejoe
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 1
  • Thanks: 0
Hi,

Are there any chance to put automatically radio group answer label in admin email? The problem is the value of radio group answer can't contain special chars and I want to have it in my admin email.

Please Log in or Create an account to join the conversation.

Radio group answer label in admin email 2 months 2 weeks ago #263971

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 1378
  • Karma: 2
  • Thanks: 76
Hi,

for this, you should use a custom PHP email.


Please download, unzip, and install it (Breezingforms-Configuration-Package Installer-select this xml file-Install Package, after that you will see this in Manage forms).

I added a radio group with values, yes, and no, and textfield element for user email.

In form-Advacned-More options-Submit pieces-End Submit I added this:
$this->execPieceByName('ff_InitLib');
$from = 'mirko.antunovic@crosstec.com'; // Change this to the EMAIL ADDRESS you want to appear in the Email's FROM field
$fromname = 'Mirko Antunovic'; // Change this to the 'FROM' NAME you want to appear in the Email
$recipient = ff_getSubmit('email'); //change email with name of your email element (not title)
$subject = 'Your Subject Here';

$radio=ff_getSubmit('radio'); //radio is name of radio group (not title)

$body = '';
foreach ($this->maildata as $data) {
  $body .= $data[_FF_DATA_TITLE].": ".$data[_FF_DATA_VALUE].nl() . "\r\n"; 
}
$body1="add-in body whatever you want";

if($radio=="yes") {
$this->sendMail($from, $fromname,$recipient, $subject, $body1);
}
if($radio=="no") {
$this->sendMail($from, $fromname,$recipient, $subject, $body);
}

-Please replace my email with yours

In this example, if you select 'yes' you can send a custom message or whatever you want.

In this example, if you select 'no' you will receive on email content of the Form.
Please replace my email with yours.

You can text element turns off and set in properties value of the element wanted email address. And always you will receive an email when is a form sent.

Let me know, is this ok for you!
Regards,
Mirko
Attachments:

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.039 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!