ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Stand-alone form: Error page's "Return to Previous Page" link

June 25, 2007 6:38pm

Subscribe [1]
  • #1 / Jun 25, 2007 6:38pm

    I’ve created a stand-alone entry form as described here:

    http://expressionengine.com/docs/modules/weblog/entry_form.html

    My form has two required fields: “title” and “body.”

    If a member does not enter one or both of the required fields, an error page is returned which describes the problem:

    The following errors were encountered
    - Your weblog entry must have a title
    - The following field is required: Body

    The “Return to Previous Page” link uses the

    [removed]history.go(-1)

    to return the member to the stand-alone form. There is just one problem. The error page has the same URL as the stand-alone form. So, the link actually takes the member to the page they viewed *before* the stand-alone form.

    Is there a way around this? Can I force the member to my own error page?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases