Returning to a Submitted / Completed Form after a Validation Error

Mindwatering Incorporated

Author: Tripp W Black

Created: 08/26/1999 at 07:51 PM

 

Category:
Notes Developer Tips
Forms/Subforms, Formulas

Issue:
You are creating a new document. On pressing the Submit button, a page is displayed informing you of a validation error. On pressing the browser's BACK button, the form is redisplayed but all the fields have been reset. You have to enter the entire document again from scratch.


JavaScript Solution:
Simply include some passthrough html...
code.txt

@Formula Solution:
One solution would be to include the following formula in the hidden $$Return field:

"[[" + @Subset(@DbName; -1)+"//"+@Text(@DocumentUniqueID)+"
?EditDocument" + "]]"

Combine the above formula with other statements to produce a more friendly looking validation error page.

previous page