I've got a regular silverstripe Form() method in my controller. It submits to a Submit() method as per the normal way of doing things.
On the page the form is in a tab and not displayed by default.
Is it possible to append an anchor to the URL the form submits to so that if validation fails, the form tab is displayed?
I have tried to do this by adding:
$form->setFormAction($this->Link(). "/Submit#location-enquiry");
However the form does not seem to go to the Submit() method when doing that. Inspecting what's happening in chrome tools, it just posts to:
example/page/Submit
..with the anchor appended
How can i append the anchor and still process the form?