Redirect Form to URL based on saved field value.

sumentuten - 1 month ago

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?

Answer

- 1 month ago

It sure is:

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

fryiee - 1 month ago

It sure is:

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