Jump to:

2011 Posts in 1436 Topics by 620 members

Form Questions

SilverStripe Forums » Form Questions » When Form fields aren't valid, page refresh jumps to top of page

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1024 Views
  • socks
    Avatar
    Community Member
    190 Posts

    When Form fields aren't valid, page refresh jumps to top of page Link to this post

    SS 2.3.6
    UserDefinedForms

    When a form is at the bottom of a long page and the user doesn't properly fill out the fields and then tries to submit the form. The page refreshes and jumps back up to the top of the page and it appears everything is ok unless you scroll back down and see the errors.

    What's the best way to overcome this? Can I specify an anchor in the page to jump to when this happens?

    I currently have javascript validation turned off in _config.php (it was causing errors with my lightbox). Although I don't see any difference with functionality with it on or off.

    EDIT:
    Nevermind: Think my Requirements for the javascript files may have been causing some weirdness with the validation. Seems to be working now.

    1024 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.