Ninja Forms – change redirect URL based on API response?


How can we change the redirect_url for a redirect action based on the response from an API?

I have a custom action that runs during submission and calls an external API. Based on that response I want to change the page being redirected to. I cam get the actions with NinjaForms()->form(2)->get_actions(), but changing the redirect_url of the redirect action in that array doesn’t alter the current flow.

Alternatively how can I send a querystring containing data from the API to the redirected page?

anu 2 years 2022-03-25T04:49:50-05:00 0 Answers 0 views 0

Leave an answer