Can't get submit piece to fire

  • donneljo
  • donneljo's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 1

donneljo created the topic: Can't get submit piece to fire

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');
        exit;
        break;
    case 'standard_double_space':
        header('Location: http://tummytotoddlerexpo.com/standard-double-space-checkout');
        exit;
        break;
    case 'home_based_business_space':
        header('Location: http://tummytotoddlerexpo.com/home-based-business-space-checkout');
        exit;
        break;
    case 'non_profit_space':
        header('Location: http://tummytotoddlerexpo.com/non-profit-space-checkout');
        exit;
        break;
}
#187218
Attachments:
  • Posts: 2666
  • Karma: 78
  • Thank you received: 329

lovre replied the topic: Can't get submit piece to fire

Hello,

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.

Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===========================================
Need to renew Pro Support?
Buy Here!
===========================================
Satisfied?
Consider a membership!
===========================================
Like us on Facebook
===========================================
#187343
Attachments:
Moderators: tomeperica
Time to create page: 0.039 seconds

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here

News and Updates

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

All Extensions Subscription

Special Offer! Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for only 55!

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, WordPress® plugins, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions 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 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!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here