CANCELLED: Needed ASAP - Custom Form Functionality
Permalink
I've been struggling for a couple days now to get this to work, and I'm running out of time... and probably spinning my wheels. What I want to do is, programming-wise, above my pay grade! ;D
I have a form in the footer of every page, allowing site visitors (guests... there are no registered users, etc) to request brochures... name, email and check boxes for them to identify what brochures they want. Ideally, the form:
(1) Would use AJAX for handling errors (displayed in an alert or some other, more elegant pop-up) and the for displaying the success message (so it overwrites the form on the same page without a page reload)
(2) Save the data into the typical form tables for use in reporting
(3) Send two emails: one to the site owner (ideally having this be an editable attribute of the form, and possibly accept multiple email addresses) indicating what the user requested, and the other to the site visitor who submitted the form, with links only to the PDFs of the brochures they checked off on the form.
Ideally, the links to the PDFs would be to files controlled within Concrete5... and, even better, have an administrative user-interface for controlling the link between the checkbox value in the form and the desired PDF the form submitter receives a link to.
Feasible?!?!
If not... there's a "Plan B" approach I have in mind... but which is still beyond my abilities! Skip the AJAX stuff... redirect to a hidden page on form submission. Have the form controller pass a query string built from the selected values of the checkbox field.
The target page could be layed out with a custom block where the user can select the PDF brochure from the File Manager in order to create a download link. When viewed, the page would use the Query String to determine which blocks on the page to display.
I'd also want two emails going out in this scenario, where the one to the site visitor included the query-stringed URL to the hidden page so that they could come back again and see/download the PDFs at a later time.
Thoughts? Have the time?
Respond here or send me a PM and let me know when you think you could have this done... and how much you think the job is worth.
THANKS!
- John
P.S... attached is a screen grab of what the current form looks like. I've got some of the functionality working: I created the form in a Scrapbook and hard-coded the block into the site theme. Using Jordan Lev's awesome AJAX Form Add-On (and the "AJAX Tableless Layout" template included in it) I even got the success response to display properly... and modded his code to show an alert box when there were errors (the form doesn't really have room for the error divs to show on the page)... but couldn't figure out how to retrieve/parse the values from the Checkbox field on the form in order to handle the email to the form submitter.
I have a form in the footer of every page, allowing site visitors (guests... there are no registered users, etc) to request brochures... name, email and check boxes for them to identify what brochures they want. Ideally, the form:
(1) Would use AJAX for handling errors (displayed in an alert or some other, more elegant pop-up) and the for displaying the success message (so it overwrites the form on the same page without a page reload)
(2) Save the data into the typical form tables for use in reporting
(3) Send two emails: one to the site owner (ideally having this be an editable attribute of the form, and possibly accept multiple email addresses) indicating what the user requested, and the other to the site visitor who submitted the form, with links only to the PDFs of the brochures they checked off on the form.
Ideally, the links to the PDFs would be to files controlled within Concrete5... and, even better, have an administrative user-interface for controlling the link between the checkbox value in the form and the desired PDF the form submitter receives a link to.
Feasible?!?!
If not... there's a "Plan B" approach I have in mind... but which is still beyond my abilities! Skip the AJAX stuff... redirect to a hidden page on form submission. Have the form controller pass a query string built from the selected values of the checkbox field.
The target page could be layed out with a custom block where the user can select the PDF brochure from the File Manager in order to create a download link. When viewed, the page would use the Query String to determine which blocks on the page to display.
I'd also want two emails going out in this scenario, where the one to the site visitor included the query-stringed URL to the hidden page so that they could come back again and see/download the PDFs at a later time.
Thoughts? Have the time?
Respond here or send me a PM and let me know when you think you could have this done... and how much you think the job is worth.
THANKS!
- John
P.S... attached is a screen grab of what the current form looks like. I've got some of the functionality working: I created the form in a Scrapbook and hard-coded the block into the site theme. Using Jordan Lev's awesome AJAX Form Add-On (and the "AJAX Tableless Layout" template included in it) I even got the success response to display properly... and modded his code to show an alert box when there were errors (the form doesn't really have room for the error divs to show on the page)... but couldn't figure out how to retrieve/parse the values from the Checkbox field on the form in order to handle the email to the form submitter.
<PHEW!>
Thanks, anyway!
- John