TOPIC:

Hide Label and Field 2 weeks 3 days ago #247989

  • Topic Author
  • paolo.procacciante
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 118
  • Thanks: 0
Hello,
I'd like to hide specific label and field from default email I receive from the form.
I don't want to use custom option instead but I need to store this data to the db but I want to avoid to receive that info by mail.
How can I do that?
Thanks
Paolo

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

Hide Label and Field 2 weeks 2 days ago #247992

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

this can be hide for mailback, but for admin email not (only with custom option)

Regards,
Tihana

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

Hide Label and Field 2 weeks 2 days ago #247993

  • Topic Author
  • paolo.procacciante
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 118
  • Thanks: 0
There isn't any other way to modify it by default option?

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

Hide Label and Field 2 weeks 2 days ago #247996

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 1260
  • Karma: 3
  • Thanks: 110
no, but I also have to test, and I will get back to you :)

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

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

Hide Label and Field 2 weeks 2 days ago #247997

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

I tested this, and this is the way I was able to hide the element:
go to this: /media/breezingforms/mailtpl/mailtpl.txt.php
There you will see this part of code:
<?php foreach ($MAILDATA as $DATA): ?>
<?php echo $DATA[_FF_DATA_TITLE]?>: <?php echo $DATA[_FF_DATA_VALUE]?><?php echo $NL ?>
<?php endforeach; ?>

Replace it with:
<?php foreach ($MAILDATA as $DATA): ?>
<?php if ($DATA[_FF_DATA_NAME] != 'ElementName'): ?>
<?php echo $DATA[_FF_DATA_TITLE]?>: <?php echo $DATA[_FF_DATA_VALUE]?><?php echo $NL ?>
<?php endif; ?>
<?php endforeach; ?>

Please replace ElementName with name of your element which you want to hide (not title).

Let me know if it works for you

Regards,
Tihana

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

Last edit: Post by tihana.krivic.

Hide Label and Field 2 weeks 2 days ago #248000

  • Topic Author
  • paolo.procacciante
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 118
  • Thanks: 0
Hi, thank you for your effort but does not work.
I did it as below, prendoIdBTpadre is the element name

<?php foreach ($MAILDATA as $DATA): ?>
<?php if ($DATA[_FF_DATA_NAME] != 'prendoIdBTpadre'): ?>
<?php echo $DATA[_FF_DATA_TITLE]?>: <?php echo $DATA[_FF_DATA_VALUE]?><?php echo $NL ?>
<?php endif; ?>
<?php endforeach; ?>

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

Moderators: ForumSupport
Time to create page: 0.042 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!