• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Variable confirmation e-mails from single form

Variable confirmation e-mails from single form 9 years 8 months ago #32326

  • ecar
  • ecar's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
I'd appreciate it if anyone has tips on how to send different specific responses confirming receipt of a form, depending on either:

1) a check or radio box input

or

2) different Submit buttons

In either case, my goal is the same: send people one of four responses, depending on which one of four options they chose while filling out the form.

Thanks for any advice you can offer!
The administrator has disabled public write access.

Variable confirmation e-mails from single form 9 years 8 months ago #32329

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Have you considered using the PHP Email scripts area for this ?

https://www.rsjoomla.com/support/documentation/rsform-pro/getting-started/php-email-scripts.html
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Variable confirmation e-mails from single form 9 years 8 months ago #32337

  • ecar
  • ecar's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Thanks for the tip! I'm checking it out and trying to write a basic script to modify responses according to a radio button. I tried this, and it's not initially modifying the message:

$modUserEmailText = $form->UserEmailText;

if($_POST == "Freeze Membership'')
$modUserEmailText .= "Modified message I'm trying to send is here.”;

$userEmail = $modUserEmailText;
$userEmail = str_replace($placeholders, $values, $userEmail);


Also, sorry I wasn't clear in my question, but: While different emails would work, I'd prefer to have different confirmation messages immediately appearing in the browser after you hit Submit, with a different message from each of four options on a single radio button. Is there any script or way to do that?

Thanks again!
The administrator has disabled public write access.

Variable confirmation e-mails from single form 9 years 8 months ago #32343

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Your script is not correct:
if($_POST == "Freeze Membership'')

should be more like this:
if($_POST['form']['name of field here'] == "Freeze Membership'')

This should provide some insight on how to manipulate submitted information:

https://www.rsjoomla.com/support/documentation/rsform-pro/customizing-rsform-pro/custom-php-code.html

If you were not referring to emails, then you can use the PHP Scripts > Scripts called after form process and alter the $thankYouMessage variable:

https://www.rsjoomla.com/support/documentation/rsform-pro/getting-started/php-scripts.html
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!