cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Auto fill fields from POST/GET data.
November 25, 2008
4:07 pm
cirex
Guest

Please replace the ??? with your data!

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

[desc]:
_ Is there any way to pre populate the cforms:form with the data from get or post data.

My problem is that i have a mini form at my landing page, when that form is completed and sumitted is should go to the cforms:form and fill in the data that is filled in the mini form.

Thanks for the great plugin.

November 25, 2008
8:48 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Yes, provided that the field ID's are the same. Both POST and GET should work, the latter via a parameterized URL.

November 28, 2008
3:21 am
pilgrim2009
Guest

Hi,

I am doing what is being discussed in this thread but I have a special request – can the pre-populated field be used as a variable in the subject of the email?

So far I got the pre-populating thing working, but when I try to notify the admin that the 2nd form has been sent I don't receive the correct subject.

Thanks,

pilgrim2009.

November 28, 2008
3:25 am
pilgrim2009
Guest

Oh, 

I saw it works but only if I not disable the field. Can it be set up with the disabled field? Or hiding it?

Thanks again,

pilgrim2009

November 28, 2008
4:31 am
cirex
Guest

Works! Actually the field name works. Thanks for the help. This plugin kicks ***.

November 28, 2008
7:52 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

@pilgrim2009

right, if you disable a field then the HTML POST action doens't transmit it, which is unavoidable. However, you can use a hidden field.

February 14, 2013
1:52 am
DoronDeco
Guest

Oliver said
Yes, provided that the field ID's are the same. Both POST and GET should work, the latter via a parameterized URL.

Hi I need to get data from a url eg http://www.fortydays.co.za/program/register/?pdetails=juiceon_2

Then pass this value "juiceon_2" into a hidden field on a form

I have tried  to use  $_GET['pdetails'] in the default value of an text and hidden field 

any Ideas how todo this what am I missing

Thanks 

Doron

 

Would love your help 

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
43 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3735

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5336

Posts: 18700

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)