Redirecting to the form success message location for longer pages

This commit is contained in:
Will Rossiter 2014-11-28 18:16:37 +13:00
parent e3c7673af9
commit 7a76626cd2
2 changed files with 7 additions and 3 deletions

View File

@ -431,6 +431,8 @@ SQL;
class UserDefinedForm_Controller extends Page_Controller {
private static $finished_anchor = '#uff';
private static $allowed_actions = array(
'index',
'ping',
@ -1067,8 +1069,8 @@ JS
if(!$this->DisableSaveSubmissions) {
Session::set('userformssubmission'. $this->ID, $submittedForm->ID);
}
return $this->redirect($this->Link('finished') . $referrer);
return $this->redirect($this->Link('finished') . $referrer . $this->config()->finished_anchor);
}
/**

View File

@ -1 +1,3 @@
$OnCompleteMessage
<div id="uff">
$OnCompleteMessage
</div>