TOPIC:

Admin Emails - Non-empty values when creating custom Email 1 month 13 hours ago #257258

  • Topic Author
  • guitrldy
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 57
  • Thanks: 0
Hello! I want to create a custom email but not include labels for "non-empty values".
{email:label} {email:value}
 {contactphone:label} {contactphone:value}
 {ArizonaMountainKingsnake:label} {ArizonaMountainKingsnake:value}

If  {ArizonaMountainKingsnake:label} {ArizonaMountainKingsnake:value} is empty, I don't want to include the label or the value in my email.

Is there a way to do this?
Thanks!
Lisa W.
Lisa W.

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

Admin Emails - Non-empty values when creating custom Email 4 weeks 39 minutes ago #257277

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

please go to your form->Advanced->More options->Admin Emails->Report->select Nonempty values

Hope this helps

Regards,
Tihana

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

Hi, tha'Admin Emails - Non-empty values when creating custom Email 3 weeks 6 days ago #257335

  • Topic Author
  • guitrldy
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 57
  • Thanks: 0
Hi, thanks for your response!

My form allows users to select from a large list of reptiles.
If they do not select a certain reptile, I don't want it to be included in my admin email.

But I do want to create a "custom" email.

But with a custom email, the "non-empty values" option only stops the display of the "value", but not the display of the "label".
{ArizonaMountainKingsnake:label}:  {ArizonaMountainKingsnake:value}

If my user doesn't select ArizonaMountainKingsnake, I don't want the label OR value to be included in my Admin Email.

Is there a way to do this?
Thanks!
Lisa W.
Lisa W.

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

Hi, tha'Admin Emails - Non-empty values when creating custom Email 3 weeks 5 days ago #257349

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

I tested it. And when I have Report: Nonempty values, and Edit Emails: Custom.

Empty labels is not shown if value is not entered

Which version of BF are you using?

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

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

Hi, tha'Admin Emails - Non-empty values when creating custom Email 3 weeks 5 days ago #257412

  • Topic Author
  • guitrldy
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 57
  • Thanks: 0
My version: BreezingForms 1.9.1 Stable (build 941)

Here's a look at my Custom Email:
{name:label} {name:value}
{email:label} {email:value}
{contactphone:label} {contactphone:value}
{altPhone:label} {altPhone:value}

{hornorName:label} {hornorName:value}
{pronoun:label} {pronoun:value}

Event Address::
{eventStreet:value}
{city:value},  {state:value}  {zipCode:value}

{eventDate:label} {eventDate:value}
{altEventDate:label} {altEventDate:value}
Time slot(s) {eventTime2:value}

Party Size: {partyType:value}

Total number of animals selected: {animalTotal:value}

{ArizonaMountainKingsnake:label}
{BallPython:label}
{Bullsnake:label}
{CoachwhipWestern:label}
{CornSnakeAlbino:label}
{CornSnakeAmelanistic:label}
{CornSnakeCreamsicle:label}
{CornSnakeSnow:label}
{GreyBandedKingsnake:label}
{HognoseEastern:label}
{HognoseWestern:label}
{HognoseWesternAlbino:label}
{MexicanMilkSnake:label}
{RosyBoaLocale1:label}
{TexasRatSnake:label}
{YellowRatSnake:label}


{beardedDragon:label}
{uromastyxEgyptian:label}
{uromastyxMail:label}


{AlligatorSnappingTurtle:label}
{BellsHingeback:label}
{CommonMusk:label}
{CommonSnappingTurtle:label}
{DesertBoxTurtle:label}
{EasternBoxTurtle:label}
{HermannTortoise:label}
{OrnateBox:label}
{PaintedWood:label}
{PancakeTortoise:label}
{RazorbackedMusk:label}
{RedfootTortoisebaby:label}
{RussianTortoise:label}
{ThreeToedBoxTurtle:label}

{BoaConstrictorAlbino:label}
{DesertTortoise:label}
{DumerilBoa:label}
{SavannahMonitor:label}
{Tegu:label}
{YellowfootedTortoise:label}

Comments: {commentsQuestions:value}

--------------------------------------

Here's a look at my email output (notice all the "blank lines"):
Name Lisa W
Email thewin@gmail.com
Contact phone 1111111111
 

 
 

Event Address::
1 main st
Austin,  TX  11111

Event Date 04/29/2021
 
Time slot(s) 05:30pm

Party Size: 12

Total number of animals selected: 4




Coachwhip (Western)













Bearded Dragon





Common Musk Turtle














Dumeril's Boa





 

Comments: 

--------------------------------------

I don't want all these blank lines... Is there a way to do this?
Thanks!
Lisa W.
Lisa W.

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

Last edit: Post by guitrldy. Reason: Thought it was working, but wasn't

Hi, tha'Admin Emails - Non-empty values when creating custom Email 3 weeks 5 days ago #257419

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

The empty lines can't be avoided if you create a custom email in "Edit Emails" code in your form->Advanced->Admin Emails/Mailback Emails.

But here is an explanation on how to avoid such cases.

To create a custom email template please go to /media/breezingforms/mailtpl/ folder and create there a file named
FORMNAME.html.php for admin emails
or
FORMNAME_mailback.html.php for mailback emails.

You can find out more about templates here:
crosstec.org/en/support/online-documenta...-templates-work.html

Let me know if you need more help

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

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

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.050 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!