+ Reply to Thread
Results 1 to 3 of 3

Thread: derive_fields in multiforms

  1. #1
    Join Date
    May 2005
    Posts
    19

    Default derive_fields in multiforms

    Hi,

    Although my multiform is nearing completion, I still have a problem that keeps me from finishing it.

    I'm working on a multiform which includes an autoresponder. Now the autoresponder keeps complaining it can't find an "email" field.
    I had tried deriving the email field using the "derive_fields" feature, so I first decided to remove this. No luck.
    Then I created a two-page form, the first of which contained a plain "email" text field; the second contained nothing but a submit button. The autoresponder kept complaining. (I have attached this sample).

    There's another problem, with the derive_fields feature, it seems. The last page in my sequence contains nothing but a list of all the values the user has entered (for reviewing them); wherever I put my derive_fields command for the email field, the email field always seems to be empty when I come to the last page.

    In short, I would be much obliged if you could help me with these two problems:
    1. If I want to derive the email field, where should I do so? (i.e. on which page should I put the derive_fields statement: on the page containing the fields from which email is derived, or on the last page?)
    2. Is it possible to use the combination autoresponder/multiforms?
    Thanks a lot in advance...

    Kind regards,


    Onno Broekmans
    Attached Files

  2. #2
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: derive_fields in multiforms

    Hi,

    In short, I would be much obliged if you could help me with these two problems:
    1. If I want to derive the email field, where should I do so? (i.e. on which page should I put the derive_fields statement: on the page containing the fields from which email is derived, or on the last page?)
    2. Is it possible to use the combination autoresponder/multiforms?
    Yes, multi-page forms work with autoresponding.

    Here's some info from the HOW TO guide.

    All other pages of a multi-page form sequence are FormMail templates. These are regular HTML documents with forms that submit to formmail.php, but you can also substitute previous field values (i.e. values submitted from previous pages) by using the $field syntax.
    It's probably not as clear as it could be, but instead of trying to derive "email", you use the template mechanism.

    Yes, the email address and the autoresponding fields need to be on the last page.

    But, you can accept the email address from the user on the first page and call the field "emailaddr" (or whatever) and then on the last page you do this:

    Code:
    	<input type="hidden" name="realname" value="$name" />
    	<input type="hidden" name="email" value="$emailaddr" />
    The multi-page sample does exactly this to transmit the name and email address from the first page to the final last page submission.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    May 2005
    Posts
    19

    Default Re: derive_fields in multiforms

    Thanks again for you quick assistance.

    Of course, what you tell is completely logical, yet I hadn't thought of it that way... However, it will probably solve all my problems! Great!

    Still wondering why deriving the email field didn't work as expected... Though probably I shouldn't nag you about that

    Now I can finally show my revamped form to some people I bet they'll love it!

    Regards,


    Onno

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Derive_fields problem (7.08)
    By info@marcel.co.za in forum Community Support
    Replies: 3
    Last Post: 16-Feb-2007, 01:33 PM
  2. Trouble with derive_fields function & arrays...
    By Percipient in forum Community Support
    Replies: 1
    Last Post: 02-Feb-2007, 07:34 PM
  3. derive_fields for mail_options
    By tvulucy in forum Community Support
    Replies: 2
    Last Post: 07-Sep-2006, 08:45 AM
  4. Error "derive_fields specifications are invalid "
    By Mystic_Bovine in forum FormMail Subscription Support
    Replies: 6
    Last Post: 29-Aug-2005, 09:50 PM
  5. recipients field as derive_fields
    By NOgbourne in forum FormMail Subscription Support
    Replies: 5
    Last Post: 09-Dec-2004, 01:34 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