I have two questions about $$Return:
1.) A field holds a message to be displayed by $$Return. If this field is null, is there a means of preventing $$Return from displaying any message (including the default ‘Form submitted’) and having the updated document displayed instead. (For example, if a submitted document results in an error, a message would be displayed, but otherwise the updated document would be displayed.)
2.) If a message is displayed by $$Return, is there a link that can be added to the $$Return formula to return the user to the previous page? I’ve tried the following without success:
This results in a ‘Page not Found’:
appURL := @GetHTTPHeader(“Host”) + “/” + @WebDbName;
docURL := appURL + “/” + @Subset(@ViewTitle;1) + “/” + @Text(@DocumentuniqueID);
“
<a href="” + docURL + “">Return to previous page
”This displays a new document rather than the document that was being processed:
docURL := HTTP_Referer;
“
<a href="” + docURL + “">Return to previous page
”Thanks.