cformsII Support Forum
Current User: Guest *Frequently Asked Questions*
Search 
Search Forums:


 




Use one cforms to auto-fill another

Add a New Topic Reply to Post
Post

zzoeller - Guest

6:50 pm - July 28, 2008

Please replace the ??? with your data!

  • Your URL: http://???
  • The browser used: ???
  • cforms version: ???
  • Your Wordpress version: ???

[desc]:
_

Hello


I'd like to use a partial sidebar form with a name and email field to redirect to a complete form and fill in those fields.

Is there any easy way to do this or should I just use an html form?

Oliver - Admin

7:10 pm - July 28, 2008

posts 3656

yep, real easy.

  1. create two forms: simply clone your default form
  2. one the first form:
    1. strip form to only include the fields you want (name etc)
    2. configure the FORM ACTION setting to point to the page that contains form #2
    3. add first form to the sidebar
      1. adjust CSS for this specific form (width etc.)
  3. second (complete) form:
    1. add second form to a page and copy permalink (used for above FORM ACTION)

done.

the second form should (since some of the fields have the same name!) take over the initially provided data.

zzoeller - Guest

5:50 pm - July 29, 2008

Oliver,


I set up the forms like your last post said and the redirection works but the fields do not carry over / auto-fill...


Any ideas?

Oliver - Admin

8:55 pm - July 29, 2008

posts 3656

Got URLs ?

tammyhart - Guest

10:29 pm - July 30, 2008

followed the directions, and it redirects fine to those pages, bust doens't fill in the data


leo . squatpad . com - first form

leo . squatpad . com /contact-us - complete form

Oliver - Admin

10:51 pm - July 30, 2008

posts 3656

Sorry forgot to mention that of course the field IDs have to match.

E.g. for "Your Full Name", enter "Your Full Name[id:full_name]" in both your forms

...and make sure to enable CUSTOM ID/NAMES for form fields in each config.

tammyhart - Guest

11:31 pm - July 30, 2008

Perfect!

Andrew - Guest

12:54 am - August 28, 2008

Is it possible to do this without using the first form from the sidebar? I am trying to make this work using 2 pages but something is not working and I am not sure if it is a problem with my forms or a problem with cforms in general. Here is what I have:


Form #1

fields: name, email

enabled id's and added them fields

submit form data to: Page #2 permalink


Form #2

fields: name, email, comments

enabled id's and added to fields as above


In essense the form #2 is a clone of form #1 with an extra field and the submit form data part removed.


Page #1

contains form #1


Page #2

contains form #2


When I goto page #1 I see form #1 and the id's are correct. The form submission sends to the correct permalink to page #2 but when it tries to load the permalink it gives me a 404 error. If I go directly to page #2 using the same permalink it shows me form #2.

Any ideas what may be the problem? I am using the latest version of cforms and version 2.6.1 of wordpress.

Oliver - Admin

7:45 am - August 28, 2008

posts 3656

Sounds like you're doing the right thing. Have you checked your .htaccess / security settings that may prevent loading the specific URL from a _POST action? Your provider may be able to shed some light on that.

Also, providing URLs to look at always helps...

Add a New Topic Reply to Post


Reply to Topic: Use one cforms to auto-fill another
PLEASE READ THE FAQs FIRST! THANK YOU.

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 5 + 12        (Required)

Topic Reply:


 
© Simple:Press Forum - Version 3.1.3 (Build 356)