Redirect Form to URL based on saved field value.
Created 3 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  —  3 years ago Best Answer

It sure is:

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