I just want to add an anchor ID to the URL so it will reload back to the form area on the page.
I solved this for successful submissions.
UserDefinedForm.php line 856:
return $this->redirect($this->Link() . 'finished' . $referrer . '#singleColumn');
But for forms with errors (blank required fields), I can't get it working.
line 718
if(Session::get("FormInfo.{$form->FormName()}.errors")){
Controller::curr()->redirectBack();
return;
}
No matter what I change redirectBack(); too, nothing changes.