• Forms ala "Create Document"

    By Ross Swick 1 decade ago

    I'm trying to create a simple form  for user comments.  I used the Create Document example and that was most helpful.  Now I'm adding validation.  Works fine with client side validation - but popups are annoying so I'm trying to get server side validation in-line.  that works fine too - except - on failure the page goes to the top home "page" instead of staying on my form page.  if I navigate back to my form the error messages are there, exactly where they should be.

    Is there an easy way to stay on the second "page" if the submit button on that page experiences a validation failure?

    Thanks,

    -Ross

    • Add hastag to URL

      By F van der Linden 1 decade ago

      May be you could add a hashtag to the url, like #secondpage. secondpage is an anchor of the current page with the validation errors

      • Where?

        By Ross Swick 1 decade ago

        that sounds like exactly the sort of thing I'd like to do.  but where?  I'm an xPages newbie so I'm only a little embarrased to admit I cannot figure out where i have access to the submit buttons "validation failure" and "validation success" actions.

        Thanks

        -Ross