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?