TOPIC:

Using ff_getSubmit with Checkbox Groups 10 years 11 months ago #9716

  • Topic Author
  • Viperfish
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 13
  • Thanks: 0
Hi all,

I have written a submit piece for my form which emails the form fields in a nice table to the site admin. Only issue is with a checkbox group. It only ever sends the result from the first and only the first check box selected. Here's the portion of code which applies to the checkbox group.
$email_body .= "<td width='150'>Your Selections:</td>";
$email_body .= "<td width='400'>" . ff_getSubmit('bfQuickMode2701339')."</td>";

However, the default Form Record Received notification contains all the selections nicely separated with a comma and the form records are correct as you can see in the attached image. Each checkbox in the group is saved with the same name - bfQuickMode2701339.

How do I concatenate all the results together using a submit piece?
Attachments:

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

Re: Using ff_getSubmit with Checkbox Groups 10 years 11 months ago #9717

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10063
  • Karma: 167
  • Thanks: 800
Hi,

for doing this you need to add the list type, like this

ff_getSubmit('bfQuickMode2701339', FF_LIST);

This will return the values as list, while FF_ARRAY would make it return as array.

Also see the piece's description in the pieces manager for details.

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

Re: Using ff_getSubmit with Checkbox Groups 10 years 11 months ago #9718

  • Topic Author
  • Viperfish
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 13
  • Thanks: 0
Excellent! Thank you for the help. FF_LIST is exactly what I needed. Didn't think to look in the pieces manager.

Thanks Again.

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

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