Custom Form code to submit

Permalink
I have already made modal popups working on my site using some code i made in my theme. The problem is i want to add a form to this to submit data to my concrete5 forms. I have tried examining the code for a form a i made on another page but didn't work. How can i make my modal form submit to a form called Contact Us?

 
RadiantWeb replied on at Permalink Reply
RadiantWeb
I can't speak for the forms block, but you can do this pretty easily with ProForms.

http://www.concrete5.org/marketplace/addons/proforms/...

It has a nice "popup" question type you can wrap around any set of questions.

ChadStrat
http://goradiantweb.com
evilchinesefood replied on at Permalink Reply
The form blocks are fine and i probbaly need to do one to make the form in concrete5 but i want to be able to submit using the code i already have. Is there a submit link i can use or a post/get code to put into my form to make it submit to my form i have made
juliandale replied on at Permalink Reply
juliandale
You can pre-fill data into a form on another page by using querystring values, as long as you know what the name of each form field is, e.g.

If you have a form on a page /contact-us and you had an email address field named Question2, you could pre-fill that form by using this URL:
/contact?Question2=user@domain.com

Some examples are here:

http://www.concrete5.org/marketplace/swag/?Question219=This%20is%20...

or

http://www.concrete5.org/developers/join_beta_team/?company=evilchi...

If you have all the data you need from your modal form, then you could get the form on the other page to submit automatically by using some JQuery upon page load.
juliandale replied on at Permalink Reply
juliandale
p.s. You can also do the same using POST data from your modal form, as long as the field names match up to the ones on the second page.