Results 1 to 7 of 7

Thread: Conditional multi-page forms?

  1. #1
    Join Date
    Sep 2011
    Posts
    18

    Question Conditional multi-page forms?

    I don't know if I'm missing something, but I'm reading the instructions for multi-page forms, and it says:

    Some reasons to use multi-page forms are:


    • you have a lot of information to collect from the user and you want to structure it into smaller pages
    • you need to control what information to collect based on the answers the user provided for previous form values (fields)
    • you need to perform calculations from the submissions of a form before displaying another form
    I would like to do the #2. I can't find any instructions or examples of how this is done?

    Here's an example: I want the first page of the form to have options A, B, C.

    If user selects A, when they click "next" they go to form A2.
    If they select B, when they click "next" they go to form B2.
    etc.

    Know what I mean?

    How do I do this? Is it possible?

  2. #2
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: Conditional multi-page forms?

    so the next page is controlled by a field called "next_form"

    all u have to do is set that to wot u want based on the answers

    if the answer is a drop down list (select tag), just make the name of that field "next_form" and the option values the name of the document u want

  3. #3
    Join Date
    Sep 2011
    Posts
    18

    Default Re: Conditional multi-page forms?

    hmm... but if the value field is something like "document2.html" - how do I ever present the results of that form?

    What I mean is, on the next page and in the email results when I put $field1, $field2 etc, this gets drawn from the "value" field... so the content of the "value" field should be something coherent?

    Well, anyway, nevermind, I've worked around it the snail-way, instead of having the first page of the form with conditional fields, I just made a list of link options, each links to a different chain of forms. Does the job for this case.

    Thanks anyway!

  4. #4
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: Conditional multi-page forms?

    Quote Originally Posted by teapot
    hmm... but if the value field is something like "document2.html" - how do I ever present the results of that form?
    step 1: learn about multipage forms by creating a simple one
    step 2: re-read my reply and it will make sense to u

  5. #5
    Join Date
    Sep 2011
    Posts
    18

    Default Re: Conditional multi-page forms?

    Your post makes sense, as far as I can grammatically work it out anyway, to be fair, you don't seem to bother too much with sentence structure so maybe there is a misunderstanding.

    Did you mean this (I know you said select but I need to use checkboxes)?

    HTML Code:
    <input type="checkbox" name="next_form" value="nextpage1.html" /> Option 1
    <input type="checkbox" name="next_form" value="nextpage2.html" /> Option 1
    If yes, then what happens when I try to submit the results of that form to an email or the goodtemplate.html, and I want to include that field?

    I write $next_form - and it renders what? nextpage1.html?

    Is there some way to make it say "Option 1" instead?

  6. #6
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: Conditional multi-page forms?

    Quote Originally Posted by teapot View Post
    Your post makes sense, as far as I can grammatically work it out anyway, to be fair, you don't seem to bother too much with sentence structure so maybe there is a misunderstanding.
    yeah, i'm lazy.

    Did you mean this (I know you said select but I need to use checkboxes)?

    HTML Code:
    <input type="checkbox" name="next_form" value="nextpage1.html" /> Option 1
    <input type="checkbox" name="next_form" value="nextpage2.html" /> Option 1
    If yes, then what happens when I try to submit the results of that form to an email or the goodtemplate.html, and I want to include that field?

    I write $next_form - and it renders what? nextpage1.html?

    Is there some way to make it say "Option 1" instead?
    u want radio buttons not checkboxes. a set of checkboxes is multuiple fields (so that won't work). a set of radios is one field.

    HTML Code:
    <input type="radio" name="next_form" value="nextpage1.html" /> Option 1
    <input type="radio" name="next_form" value="nextpage2.html" /> Option 1
    u will never put $next_form on the next page - why would u?

    next_form is a command to Formmial not information to the user.

  7. #7
    Join Date
    Sep 2011
    Posts
    18

    Default Re: Conditional multi-page forms?

    Damn. You're right.

    If I could post an image of a facepalm now, I would.

    thanks man!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. calculated field values unassigned in email and next page in multi-page forms
    By ewstawick in forum FormMail Subscription Support
    Replies: 2
    Last Post: 18-May-2010, 03:26 AM
  2. Replies: 1
    Last Post: 17-May-2010, 08:27 AM
  3. Multi-page forms
    By thesuperav in forum Features Questions
    Replies: 1
    Last Post: 26-Sep-2006, 08:10 PM
  4. Multi-page forms
    By Norris in forum Community Support
    Replies: 1
    Last Post: 01-Feb-2006, 05:32 PM
  5. Multi Page Forms
    By eenkopjekoffie in forum FormMail Subscription Support
    Replies: 8
    Last Post: 08-Nov-2005, 06:47 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •