Form Help

TOPIC:

Customization of pdf attachement 3 weeks 3 days ago #257525

  • Topic Author
  • Leni14
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 152
  • Thanks: 0
Hi,

I am customizing the pdf attachement and need some help to find a solution.

I have a select field and I show it in the attachement as:
<?php echo $fieldname; ?>

this works fine.


Now I would like to show something more complex.

If value of $fieldname is set "text1" than show "textA" if the value is set "text2" show "textB".
Changing the value in breezingforms is no option as I want to show as value "text1" and "text2" in the form instead of "textA" and "textB".

Can you help?

Thx,
Leni

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

Customization of pdf attachement 3 weeks 3 days ago #257529

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

something like this:
if ($fieldname ==  'text1'){ $fieldname = 'textA'; }
elseif ($fieldname ==  'text2'){ $fieldname = 'textB'; }
else { $fieldname= 'textC';  }

P.S: This is php code, and then you can print it like:
<?php echo $fieldname; ?>

Regards,
Tihana

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

Last edit: Post by tihana.krivic.
  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.043 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!