Thanks. That’s interesting.
Maybe a simple approach could be updating a chunk storing the "Submit from" document id when the form is posted and read that chunk from the "Thank you" page.
I did not check, but I think it should be possible with MODx’s API.
Not very important for me; just an idea for future versions.
In theory, the page before that one is stored in HTTP_REFERER. 
I’m using SPForm on a new site. (I love SPForm. I use it all the time!) I have limited space and would like to position the input field under the labels rather than after them on the same line.
Where is this form layout controlled?
Thank you!
My referrer url has a trailing slash, which of course causes the user to be directed back to an error page. It looks like: mysite.com/where-they-came-from\
How do I get rid of that slash? I haven’t modified the code at all.
$originalReferer = urldecode($_GET['OrigRef']);
$originalReferer = $_GET['OrigRef'];
There were problems with your submission. This may be through no fault of your own and is probably not immediately correctable. Please come back and try again later.
$formProcAllowedReferers = array(
'http://www.lastcallproduction.com/','www.lastcallproduction.com/'
);
Quote from: wilcosky at Dec 06, 2009, 07:32 AM
My referrer url has a trailing slash, which of course causes the user to be directed back to an error page. It looks like: mysite.com/where-they-came-from\
How do I get rid of that slash? I haven’t modified the code at all.
For the trailing slash, try changing this line in spfresponse.inc.php (in the assets/snippet/spform dir)
from:
$originalReferer = urldecode($_GET['OrigRef']);
to
$originalReferer = $_GET['OrigRef'];
If that doesn’t work, you’ll need to play with the code at the end of spformproc.inc.php that’s supposed to strip that slash.
Turn SPForm’s debug on and try changing the -3 to -4 and see what you get.
There were problems with your submission.
This may be through no fault of your own and is probably not immediately correctable.
Please come back and try again later.
$formProcAllowedReferers = array(
'http://www.lastcallproduction.com/','www.lastcallproduction.com/'
);