Results 1 to 3 of 3

Thread: Return link to return to head of form

  1. #1
    Join Date
    Dec 2004
    Posts
    64

    Default Return link to return to head of form

    Hi Ruseell,
    I have set up a quite a few forms and a standard badhandler page that shows which fields were not filled in along with a return link at the foot of the page to go to the page with the form. When I click on that link it goes back (or creates a similar) form page BUT jumps to the top of the page not to the top of the form.

    Some of my forms are quite way down on the page and this could confuse a site visitor as they may not see the form right away.

    Is there a way to make the return to the form page such that it jumps to the top of the form so the site visitors sees it right away?

    Thanks

    JohnB

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

    Default Re: Return link to return to head of form

    Hi,

    This is planned for a future version of FMBadHandler.

    It can be done within your form using JavaScript. The basic logic on page load is:
    • look to see if a field has been filled in
    • if so, put focus on the field and rely on the browser to scroll to it
    As an initial attempt, you can try always giving focus to a field.

    Here's some sample code: http://www.html-faq.com/htmlforms/?entryfocus
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Dec 2004
    Posts
    64

    Default Re: Return link to return to head of form

    Thanks Russell !

    JohnB

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. fmbadhandler link back problem
    By frankherzog in forum FormMail Subscription Support
    Replies: 6
    Last Post: 25-Nov-2004, 10:58 AM
  2. Return All Variables To Form Page On Error
    By cornernote in forum FormMail Subscription Support
    Replies: 12
    Last Post: 31-Oct-2004, 09:20 PM
  3. Link to your own REDIRECT page?
    By cottonslurpy in forum FormMail Subscription Support
    Replies: 2
    Last Post: 17-Jun-2004, 08:36 PM
  4. Return All Variables To Bad_Form Page On Error
    By vladimir in forum FormMail Subscription Support
    Replies: 2
    Last Post: 07-Jun-2004, 05:13 PM
  5. No return link for badhandler
    By ptr in forum FormMail Subscription Support
    Replies: 3
    Last Post: 26-May-2004, 11:27 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
  •