Form Help

TOPIC:

Show name of Radio Button selection, rather than value 4 years 5 months ago #229630

  • offsitetradie's Avatar Topic Author
  • offsitetradie
  • Offline
  • New Member
  • New Member
  • Registered
  • Posts: 12
  • Thanks: 1
Hi there,

I'm trying to create a form that we can use in the field when conducting inspection reports.

I need to have a selection of radio groups that are used for validation, however on the exports to PDF, I would like the value to show as the name of the radio button option selected, rather than it's value that validation uses.

0;Was not found;was_not_found
0;Was found - see item D1;was_found_see_item_d1

In the above example, I would need the validation to make the section D1 visible if the second option is selected, however on the PDF I would like it to say the nicer looking wording "Was found - see item D1" rather than the value of that selection "was_found_see_item_d1". I can get it to output the nicer looking text by doing the below, however this does not allow the element to be used in validation.

0;Was not found;Was not found
0;Was found - see item D1;Was found - see item D1

Does anyone know if this is possible, and how do I achieve this? I am somewhat familiar with creating the custom PDF to export, I am just not familiar enough to know what to use to get the nicer looking wording.

Thank you, your help is greatly appreciated.
Hanna

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

Show name of Radio Button selection, rather than value 4 years 5 months ago #229635

  • DarkoCujic's Avatar
  • DarkoCujic
  • Offline
  • User is blocked
  • User is blocked
  • Registered
  • Posts: 2154
  • Thanks: 265
Hey,

yeah, it's possible.

If you check the pdf_attachment.php file you'll notice that $data has different indexes: _FF_DATA_TITLE, _FF_DATA_VALUE, _FF_DATA_NAME, _FF_DATA_TYPE....

I'd need to take a look at your pdf_attachment.php file so I can help you. It all depends on how you're outputting the data. It's only one or two additional lines. Basically, all you have to do is check if _FF_DATA_NAME is equal to the name of your element and for that element write out $data[_FF_DATA_TITLE] instead of value.

Get back to me with the info so we can resolve this.

Kind regards,
Darko
Satisfied with our support? PayPal tips
===========
Need to renew Pro Support? Buy Here!
===========
Satisfied? Consider a membership!
===========
Like us on Facebook
===========
Support Crosstec and get ALL EXTENSIONS and professional support for just $5. Here!

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

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.042 seconds

Support Discord

Join our Discord and enter the Crosstec channels for live-support, chat forums and directly interacting with the community!

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

Subscribe to news and updates!

Special Offer

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!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!