Welcome, Guest

TOPIC: Can't get submit piece to fire

Can't get submit piece to fire 1 month 3 weeks ago #187218

  • Posts:7 Thank you received: 1
  • donneljo's Avatar
  • donneljo
  • Fresh Boarder
  • Offline
  • Karma: 0
First of all I really like BreezingForms for WordPress. It looks like you aren't really developing this any further which is unfortunate. Here's my issue:

I created a form for people to register for space at an expo. in the form, there is a drop down list item named requested_package. The list options are standard_space, standard_double_space, home_based_business_space, non_profit_space. When the form is submitted, I want to take the user to one of four different pages dependent on what they selected in this field. I created the submit piece below and added to end submit. The form works and it submits the data, but will not forward the user to the different pages. It just reloads the form page. What am I doing wrong? I attached the form in case you wanted to see it.
$this - > execPieceByName('ff_InitLib');
$value = ff_getSubmit('requested_package');
switch ($value) {
    case 'standard_space':
        header('Location: http://tummytotoddlerexpo.com/standard-space-checkout');
    case 'standard_double_space':
        header('Location: http://tummytotoddlerexpo.com/standard-double-space-checkout');
    case 'home_based_business_space':
        header('Location: http://tummytotoddlerexpo.com/home-based-business-space-checkout');
    case 'non_profit_space':
        header('Location: http://tummytotoddlerexpo.com/non-profit-space-checkout');
The administrator has disabled public write access.

Can't get submit piece to fire 1 month 2 weeks ago #187343

  • Posts:1587 Thank you received: 214
  • lovre's Avatar
  • lovre
  • Administrator
  • Offline
  • Karma: 45

I'm sending you back your form in a package. It seems that you had a small error in your code:
$this - > execPieceByName('ff_InitLib');
instead of:
$this -> execPieceByName('ff_InitLib');

everything else seems fine. Could you please check the form and let us know if it's redirecting like it should now.
Need to renew Pro Support?
Buy Here!
Consider a membership!
Like us on Facebook
Follow us on Twitter
The administrator has disabled public write access.
Moderators: pedro81, tomeperica
Time to create page: 0.057 seconds

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

New extension AnalyticsAnywhere released!

Track website visitors no matter if ad blockers are enabled! Check it out!

Lifetime Subscription

Special Offer! Get lifetime access to all of our current and future products and 2 years of professional support -- 149 for only 90!

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, WordPress® plugins, Joomla!® templates   this means, by purchasing a Lifetime Subscription you'll have it all covered!

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 1-Year or Lifetime 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!

Pro Support Renewal Plans

If you just need professional support and no further access to downloads or simply want or need to renew professional support, you may choose between various support plans from here.