Bienvenido, Invitado
Recordarme

TEMA:

Different backmails or different text in backmails depending on selection 1 mes 2 semanas antes #274122

  • Autor del tema
  • jr
  • Fuera de línea
  • Junior Breezer
  • Junior Breezer
  • Mensajes: 21
  • Gracias recibidas: 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

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Different backmails or different text in backmails depending on selection 1 mes 2 semanas antes #274124

  • Avatar de tihana.krivic
  • tihana.krivic
  • Ausente
  • Moderator
  • Moderator
  • Mensajes: 10539
  • Karma: 3
  • Gracias recibidas: 705
Hi,

you mean on text in hidden input element bfPaymentSelect?

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Different backmails or different text in backmails depending on selection 1 mes 2 semanas antes #274181

  • Autor del tema
  • jr
  • Fuera de línea
  • Junior Breezer
  • Junior Breezer
  • Mensajes: 21
  • Gracias recibidas: 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.

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Different backmails or different text in backmails depending on selection 1 mes 2 semanas antes #274183

  • Avatar de tihana.krivic
  • tihana.krivic
  • Ausente
  • Moderator
  • Moderator
  • Mensajes: 10539
  • Karma: 3
  • Gracias recibidas: 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

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Different backmails or different text in backmails depending on selection 1 mes 2 semanas antes #274185

  • Autor del tema
  • jr
  • Fuera de línea
  • Junior Breezer
  • Junior Breezer
  • Mensajes: 21
  • Gracias recibidas: 0
yes exactly, that would be very helpful.

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Different backmails or different text in backmails depending on selection 1 mes 2 semanas antes #274187

  • Avatar de tihana.krivic
  • tihana.krivic
  • Ausente
  • Moderator
  • Moderator
  • Mensajes: 10539
  • Karma: 3
  • Gracias recibidas: 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

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Última Edición: Post by tihana.krivic.
Moderadores: ForumSupport
Tiempo de carga de la página: 0.056 segundos