• Resolved Vlasta Ott

    (@plastique)


    Hi,
    I’ve searched the web, Caldera docs, GitHub but didn’t find any relevant information.

    I need to redirect processing to an URL which I created in processor/action (using plugin Caldera Forms Run Action and callback function) before. It’s a payment gateway redirection.

    I don’t know where to save the new URL or how to pass it to the redirect hook function. The redirect function only has two arguments – $url and $form, but the $form does not contain any data, it’s an empty form structure. There’s no ID or something relevant and specific.

    add_filter( 'caldera_forms_redirect_url', 'nfp_caldera_redirect', 5, 2 );
    
     function nfp_caldera_redirect( $url, $form) {
    ..}
    

    I was looking for information about how to access and modify Caldera Forms variables via PHP, which seemed to be a nice solution; but with no success. I could use a transient but need some kind of specific id in redirect routine… So I’m kind a lost.

    Thanks for some help.

    vlasta

    • This topic was modified 7 years, 9 months ago by Vlasta Ott.
Viewing 1 replies (of 1 total)
  • Plugin Author Josh Pollock

    (@shelob9)

    @plastique

    Thanks for using Caldera Forms. It sound like you have the right URL in the action that runs during submission, and need it at the caldera_forms_redirect_url filter? If so, I think using a transient or $_SESSION is a good idea because its possible that the redirect could happen during a different PHP session.

    If you need help setting this up, please open a support ticket at https://CalderaForms.com/support and we can help you get this working.

Viewing 1 replies (of 1 total)
  • The topic ‘How to redirect to dynamically created URL’ is closed to new replies.