mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-06-16 09:41:36 +02:00
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 {
|
class UserDefinedForm_Controller extends Page_Controller {
|
||||||
|
|
||||||
|
private static $finished_anchor = '#uff';
|
||||||
|
|
||||||
private static $allowed_actions = array(
|
private static $allowed_actions = array(
|
||||||
'index',
|
'index',
|
||||||
'ping',
|
'ping',
|
||||||
|
@ -1067,8 +1069,8 @@ JS
|
||||||
if(!$this->DisableSaveSubmissions) {
|
if(!$this->DisableSaveSubmissions) {
|
||||||
Session::set('userformssubmission'. $this->ID, $submittedForm->ID);
|
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
Block a user