• 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: conditions on placeholder

conditions on placeholder 11 years 1 month ago #26936

  • koenraad
  • koenraad's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hi,
searching for something like this for working with placeholders

{if {field_name:value}=dutch}U spreekt nederland{/if}
{if {field_name:value}=english}U spreekt engels{/if}

but this is not working.
I use REV46

Anyone with help?
The administrator has disabled public write access.

conditions on placeholder 11 years 1 month ago #26938

  • andreic
  • andreic's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 745
  • Thank you received: 66
Hello,

The if clauses available for the component cannot be used to check for a specific value, but only to check if the field has a value or not. More information on this topic can be found here:

www.rsjoomla.com/support/documentation/v...onfigure-emails.html

For your described scenario you will need to use a custom PHP script in the "PHP Email Scripts" tab that will check the value submitted in the field and based on this display a different message. More information on the "PHP Email Scripts" tab can be found here:

www.rsjoomla.com/support/documentation/v...p-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.

conditions on placeholder 11 years 1 month ago #26946

  • koenraad
  • koenraad's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Thanks andreic!
Still have a problem.
perhaps i can be helped again...
Form name: test
dropdown name: choice
values dutch / english

i set this code in user email script.
if i try form with both choices,
everytime the answer is 'you speak english'
what did i do wrong?

if($_POST[0] = 'dutch')
$userEmail = 'u spreekt nederlands';

if($_POST[0] = 'english')
$userEmail = 'you speak english';

image to code here
Last Edit: 11 years 1 month ago by koenraad. Reason: image added
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!