Redirect Form to URL based on saved field value.
Created 2 years ago by sumentuten

So I have a field that has 3 possible values ( dropdown ) and when the user saves the form I want to redirect the user to another route based on the value of this field. Is this possible using the form builder?

fryiee  —  2 years ago Best Answer

It sure is:

public function onSaved()
    {
        $this->setFormResponse(redirect('/admin/payments/token/finalise/' . $this->getFormEntry()->getId()));
    }