TOPIC:

if condition on Mail template 1 month 1 day ago #247168

  • Topic Author
  • jessing.s
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 5
  • Thanks: 0
Hi together,

i have an Form a SelectBox with 4 items

0;12,50 €:12,50
0;15,00 €:15,00
0;20,00 €:20,00
0;anderer Betrag:eigenner_betrag

the last item opens a textfield (visibility Rules) to enter a custom value and now i try to fetch the correct value for mailing to admin. Is there a way to make somthing like this
{if eigener_betrag:value != "" then eigener_betrag:value else beitrag:value}

THX
Sven
Attachments:

Please Log in or Create an account to join the conversation.

if condition on Mail template 1 month 1 day ago #247172

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 1260
  • Karma: 3
  • Thanks: 110
Hi,

in custom email template you can add label and value of fields.
This what you want can be placed somewhere else. Could you explain a little better so I can point you in right direction ?

Regards,
Tihana

Please Log in or Create an account to join the conversation.

if condition on Mail template 1 month 23 hours ago #247184

  • Topic Author
  • jessing.s
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 5
  • Thanks: 0
Hi Tihana,

in custom email template you can add label and value of fields.

Yes i know that, but i want iplementing an if condition.

I try to explain.

i have the select list with 3 fixed values
0;12,50 €:12,50
0;15,00 €:15,00
0;20,00 €:20,00
(picture crosstec_1.png)

That`s okay there is no seperate inputField (picture crosstec_2.png), but if i select "anderer Betrag" then comes up an seperate inputField there can user input your custom amount (picture crosstec_3.png)

Now i don`t want multiple rows in the email like
{beitrag:label}: {beitrag:value}
 {eigener_betrag:label}: {eigener_betrag:value}

i want to send the just one row like
{beitrag:label}: {if eigener_betrag:value != "" then eigener_betrag:value else beitrag:value}
to get the spending amount.

I hope that make sense :D
Attachments:

Please Log in or Create an account to join the conversation.

if condition on Mail template 1 month 6 hours ago #247200

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 1260
  • Karma: 3
  • Thanks: 110
Hi,

this is for custom HTML mail, and then you can't use if else there, because HTML is markup language not programming language.

Regards,
Tihana

Please Log in or Create an account to join the conversation.

if condition on Mail template 1 month 5 hours ago #247203

  • Topic Author
  • jessing.s
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 5
  • Thanks: 0
okay thanks, but it`s bad :lol:

I thought there is anything programmed that replace a if else statement.... the placeholder {fieldname:label} will also be replaced by PHP or anything else....

okay then i must find a other way to show the correct value.

I post it on Feature Requests.... i think thats a nice to have feature :lol:

Please Log in or Create an account to join the conversation.

if condition on Mail template 1 month 4 hours ago #247206

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 1260
  • Karma: 3
  • Thanks: 110
Hi,

also, you can use custom php email template
I will create an example for you and post it here as soon as possible :)

Regards,
Tihana
The following user(s) said Thank You: jessing.s

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.049 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!