Jump to content

[SOLVED] Multiple submit within one form with Helper Form


gr4devel

Recommended Posts

Thanks PhpMadman, the point is to have the same form (and related Helper) that can handle different type of submission.

 

In this way you only have one Helper with all the related initialization configurations.

 

My question raised from the fact that, without the possibility to have multiple submit actions "attached" to the same form, it would be necessary to instantiate multiple forms and so multiple Helpers that would have all the same configurations except for the submit action.

 

Moreover my question came up by looking at the possibility to have different fieldsets for each helper.

 

I hope I was clear enough. If this is not the case don't hesitate to ask :)

 

Cheers.

Link to comment
Share on other sites

Ok, I found the solution.

 

To accomplish what I need you should not bind multiple actions to the same Form Helper but simply specify a different name for each different submit input type defined for the Helper.

 

I wasn't clear enough don't hesitate to ask for clarifications.

 

Cheers!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...