• 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: Not send Email based on Subject Value

Not send Email based on Subject Value 10 years 10 months ago #27905

  • Huttanus
  • Huttanus's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 21
I Saw this link http://www.rsjoomla.com/support/documentation/view-article/610-php-email-scripts.html

But I really nedd help with a script. I have a form that the user can select 3 types of employment.
Permanent, Hourly employment, Staff Changes. Depending on type of employment it will be the same in the Subject line of the mail.
If they select Staff Changes, the mail should not be sent and ignored only registered in the system.
PLEASE HELP
The administrator has disabled public write access.

Not send Email based on Subject Value 10 years 10 months ago #27907

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
You will have to insert the following in the "Script called before the User Email is sent" area. Please make sure to edit the code and insert the actual name and value of the dropdown field.
if($_POST['form']['dropdown_field_name'][0] == 'Staff Changes')
  $userEmail['to'] = ' ';
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.

Not send Email based on Subject Value 10 years 10 months ago #27909

  • Huttanus
  • Huttanus's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 21
Thank you! does it have to be a DropDown Field? I Use radio button selections

Also the 'form' !!! Do I have to change this to the form ID or name of the actual form?
Last Edit: 10 years 10 months ago by cosmin.cristea.
The administrator has disabled public write access.

Not send Email based on Subject Value 10 years 10 months ago #27910

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
1.if it's a radio group you will have to delete the [0] from the syntax
if($_POST['form']['radio_field_name'] == 'Staff Changes')
  $userEmail['to'] = ' ';

2.no, you don't have to change that
My help is not official customer support. To receive your support, submit a ticket by clicking here
Last Edit: 10 years 10 months ago by cosmin.cristea.
The administrator has disabled public write access.
The following user(s) said Thank You: Huttanus

Not send Email based on Subject Value 10 years 10 months ago #27912

  • Huttanus
  • Huttanus's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 21
Sorry if I'm not good at this . Only the 0 or this [ ] to?
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!