Form page redirection upon submission based on select box content
Permalink
Hi,
As per the title, is this possible on the standard form block? I've looked into the code but as I am mores a front-end guy I can't seem to see 100% where anything would be modified/added.
Of course, upon submission I do need the form to also collect the data within the C5 backend.
Thank you for any help you can give.
As per the title, is this possible on the standard form block? I've looked into the code but as I am mores a front-end guy I can't seem to see 100% where anything would be modified/added.
Of course, upon submission I do need the form to also collect the data within the C5 backend.
Thank you for any help you can give.
I can't think of any way to do that without modifying the Form block. I can make a custom Form block within a few hours and email you the ZIP file to install it, if you want and have a budget for that. Just private message me, thanks.
Hi celwell,
Yeah, I though as much - that's the query I have really, where to make the edits, the helper file bodes no information.
How much would you charge for the modifications?
Yeah, I though as much - that's the query I have really, where to make the edits, the helper file bodes no information.
How much would you charge for the modifications?
You could do this off-the-shelf in a convoluted way with Blocks by Ajax, Magic Data, Magic Data Forms and one of the redirect blocks. But as Celwell says, in practice its easier just to override the form block.
There are 2 approaches:
1. Override the form block controller and do it in php in the save method
2. Write a custom view and add some jQuery to change the form action depending on the select value.
For a simple redirect, my preference would be for (2). However, if you wanted to save the form data before redirecting, (1) is the better solution.
There are 2 approaches:
1. Override the form block controller and do it in php in the save method
2. Write a custom view and add some jQuery to change the form action depending on the select value.
For a simple redirect, my preference would be for (2). However, if you wanted to save the form data before redirecting, (1) is the better solution.
Super, thanks. I will take a look.