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


 




random in a multipart form

Add a New Topic Reply to Post
Post

skipper chong warson - Guest

10:44 pm - November 19, 2008

1

is it possible with the most recent version of cforms to have a multi-part form that with the first part collecting some data about the user (demographic) and then randomizing what is the second part of their form. it's a data collection for a research web site and needs to have this element to have its findings validated.

I want the same form id (number, count, whatever) to hold true throughout the whole of the form -- no matter where the random (one of eight) takes 'em.

thanks in advance for your help.

  • URL to the FORM: not installed yet
  • The browser used: ???
  • cforms version: most recent
  • Your Wordpress version: ???

[desc]:
_

Oliver - Admin

7:37 am - November 20, 2008

posts 3921

2

nope it's not possible per se.

if you only need to share a common ID between datasets, you could as a workaround include a hidden field in the subsequent form(s) and preset it with the unique ID that you got from the first form.

  1. first form collects input data.
  2. second form(s) collect more data but also have a special hidden field (which will be preset with the unique ID from the first form)

on submission of first form,  the my-function.php logic needs to kick in to reroute randomly to one of eight pages (redirection overwrite)), each with a different second form on it

the redirection overwrite needs to parametrize the new UR, e.g.:

http://mysite/newpage?hiddenid=1234567

submitting the second form still is a separate process, but they are now connected through 'so to speak' a primary/foreign key method.

Now it is up to your SQL skills to craft proper SQL routines to collect all primary submissions and logically merge them with secondary submissions.

Reply to Post


Reply to Topic: random in a multipart form
PLEASE READ THE FAQs FIRST! THANK YOU.

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

Guest Name (Required):

Guest EMail (Required):

Topic Reply:

Save New PostSmileysOptions

Guest URL (required)

Math Required!
What is the sum of:
9 + 7
   

 
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell

Search