• 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: Conditionnal field in email

Conditionnal field in email 6 years 1 month ago #38906

Hello,
Sorry for my bad english, I will try to explain my problem.

In my form I use conditionnal field for showing another field in front end.
It works.
But in emails I use {conditionnal_field:caption} and {conditionnal_filed:value} , and I would like to see them only when they shown in front end.

For explain :
Question 1 : Yes or no
If answer is no, no more field
If answer is yes, show field "answer "

In email I would to show field "answer" (with caption and value) only if user choose yes...

Hope you can understand my problem....

Thank you for your help

David
The administrator has disabled public write access.

Conditionnal field in email 6 years 1 month ago #38912

Hello,

For doing what I want I think I need to use PHP emails script

But how can I change value for {variable1:caption} ?
I would like to do that :
if($_POST['form']['test'] == 'Non'){
{variable1:caption} = '';
}

But how scripting that ?
The administrator has disabled public write access.

Conditionnal field in email 6 years 1 month ago #38913

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello,

Without any scripting, a specialized {if} statement syntax is available on this matter and you can read more on this topic here.
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.

Conditionnal field in email 6 years 1 month ago #38915

And it works !
Thank you very much :cheer: :cheer: :cheer: :cheer:
Last Edit: 6 years 1 month ago by tdconcepts.
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!