Redirecting to the form success message location for longer pages
This commit is contained in:
parent
e3c7673af9
commit
7a76626cd2
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
$OnCompleteMessage
|
||||
<div id="uff">
|
||||
$OnCompleteMessage
|
||||
</div>
|
Loading…
Reference in New Issue