Form submission from specific page
Permalink
Hi, I have a 'Jobs' page with all the jobs as sub pages. I would like people to be able to apply to a job by submitting a form from a job they are interested in. Is there a way to send a 'hidden' page title along with the form submission so I know which Job they are interested in?
The best option would be to have 1 form (maybe in a stack or a popup?) that works for all pages...
Let me know and thanks!
Luca
The best option would be to have 1 form (maybe in a stack or a popup?) that works for all pages...
Let me know and thanks!
Luca
Thanks! Could you maybe elaborate a little more on where to add the code exactly?
Edited my previous post.
Hmz.. I did everything you wrote and cleared the cache, but nothing changed... Any other suggestions?
Added the complete code.
You can even change the mail template.
You can even change the mail template.
Files in application/form folder:
Change the namespace in controller and mini_survey to Application\Block\Form
In the application/blocks/form/controller.php you can add: (around line 576)
In the application/blocks/form/view.php you need to add (at the end with the rest of the hidden fields):
In application/mail add the template -> block_form_submission.php
You can copy the files from concrete/blocks/form/ to the application/blocks/form folder