TOPIC:

Different backmails or different text in backmails depending on selection 1 month 2 weeks ago #274122

  • Topic Author
  • jr
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 21
  • Thanks: 0
Hi,

we have a form with a selection box for payment options. Now we would like to set a different text in the backmail depending on the user's selection. Is that possible?

best regards

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

Different backmails or different text in backmails depending on selection 1 month 2 weeks ago #274124

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 10535
  • Karma: 3
  • Thanks: 705
Hi,

you mean on text in hidden input element bfPaymentSelect?

Regards,
Tihana

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

Different backmails or different text in backmails depending on selection 1 month 1 week ago #274181

  • Topic Author
  • jr
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 21
  • Thanks: 0
Sorry, it´s not a selection box, it´s a radio group. So the user can select a payment option by clicking on one of the radio buttons. I would then like to send the user a different backmail or put a different text in the backmaill depending on the payment option selected.

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

Different backmails or different text in backmails depending on selection 1 month 1 week ago #274183

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 10535
  • Karma: 3
  • Thanks: 705
Hi,

aha, based on selection (selected value in radio group), send different mail to the user?

For this we can use custom php mail, if I am right, I will provide you with example of the code

Waiting for your feedback

Regards,
Tihana

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

Different backmails or different text in backmails depending on selection 1 month 1 week ago #274185

  • Topic Author
  • jr
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 21
  • Thanks: 0
yes exactly, that would be very helpful.

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

Different backmails or different text in backmails depending on selection 1 month 1 week ago #274187

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 10535
  • Karma: 3
  • Thanks: 705
Please disable Mail notification in your form->Properties->Mail notification if you use php mail.

The code for php mail should be in your form->Advanced->More options->Submit pieces->End submit.

Here is an example of code in End submit piece:
$this->execPieceByName('ff_InitLib');
$from = 'tihana.krivic@crosstec.org'; // Change this to the EMAIL ADDRESS you want to appear in the Email's FROM field
$fromname = 'Tihana Krivic'; // 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), here user enters their mail
$subject = 'Your Subject Here';
$select1=ff_getSubmit('nameofradiogroup'); //change nameofradiogroup with name for your radio group(not title)



$body1="Dear customer". "\r\n". "thank you for choosing bla bla we will contact you....";
if($select1=="value1") {
$this->sendMail($from, $fromname,$recipient, $subject, $body1);
}

$body2="Dear customer". "\r\n". "we`re sorry that you don`t like bla bla...";
if($select1=="value2") {
$this->sendMail($from, $fromname,$recipient, $subject, $body2);
}
Please replace value1, value2 with value of your radio group

If you need more help, let me know

Regards,
Tihana

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

Last edit: Post by tihana.krivic.
Moderators: ForumSupport
Time to create page: 0.047 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!