+ Reply to Thread
Results 1 to 3 of 3

Thread: fill required fields back in

  1. #1
    Join Date
    Dec 2009
    Posts
    2

    Default fill required fields back in

    Hi,

    I would like to have required fields to be filled back in (if they were filled in correctly) when someone clicks on the “return to form link” on the bad_template page.

    Example:
    “realname” and “email” are required fields. Someone fills in “realname” to “BOB” but leaves the “email” field blank and hits the submit button. They will be taken to the bad_template page. When they click on the “return to form link” the form will have “realname” filled in as “BOB” …. So, now they don’t have to fill “BOB” back in.

    All the NON required fields are filled back in, but all of the required fields are left blank.

    My template is a .html file, but I tried a .php version of it with this:
    <input id="realname" type="text" name="realname" value="<?php echo $realname; ?>" />

    Thanks,
    Mark

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

    Default Re: fill required fields back in

    this is a long standing issue....

    the problem is realname and email are formmail special fields.

    for various reasons formmail doesnt fill special fields.

    the workaround is to rename the fields to, say, Name and Email, and then derive the special fields from these new ones:
    HTML Code:
    <input type="hidden" name="derive_fields" value="realname=Name,email=Email" />
    check the how to doco for more details on derive_fields

  3. #3
    Join Date
    Mar 2010
    Posts
    40

    Default Re: fill required fields back in

    On my Form, if there is an "problem" missing field or recaptcha, if you hit the back button, all of the fields are populated, and a new recaptcha is displayed, however if you just put in the new recaptcha in, it will still fail with the recaptcha being the problem.

    Is this just the way it is?

    If you hit refresh, and double click on the empty field it will show you what you had entered and you can "use" it. At least this is what happens in Chrome.

+ 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. Required fields containing default text
    By tvulucy in forum FormMail Subscription Support
    Replies: 9
    Last Post: 08-Oct-2004, 10:26 PM
  2. Required Fields not working?
    By zoe77 in forum FormMail Subscription Support
    Replies: 2
    Last Post: 02-Jun-2004, 05:27 PM
  3. Deriving fields from other fields
    By russellr in forum HOWTO Guides and Tips
    Replies: 0
    Last Post: 13-May-2004, 01:25 PM
  4. required field error
    By Ibis in forum FormMail Subscription Support
    Replies: 18
    Last Post: 02-Mar-2004, 10:04 AM
  5. required does not work ?!
    By flynst4r in forum FormMail Subscription Support
    Replies: 9
    Last Post: 26-Jan-2004, 10:04 PM

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