Search

Is it possible to change an event in the system, like for comment or message submission, to jump to an anchor when the page reloads?

Example: I have comments under my blog posts, and if the user doesn't fill out the required fields and submits the comment, the page reloads to the top of the page. They wouldn't see the error message unless they scrolled back down.

Am I able to have the page reload and jump back down to the #comments anchor? Does the system allow this or do I have to put the error/success message at the top of the page?

Thanks for the help!

The redirect hidden field can be set but I think it's only used when the event is successful.

You could put #comments in the form action no?

<form action="#comments" method="POST> ...

Not sure if that would work.

Yup. That worked fine. It was so obvious ... why didn't I think of that before?

Thanks!

Not a problem.

why didn't I think of that before?

Alistair's not human :-)

lol @ Lewis. Never know. ;)

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details