Skip Navigation

[Resolved] Create flow for user from parent cred form to child form and linking them

This support ticket is created 7 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 17 replies, has 2 voices.

Last updated by garyF-3 7 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#566921

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Private Fields

#567307

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Gary,

The best way I can think of doing this is by getting the URL value that is passed to the second form using some JQuery like this link below.
https://stackoverflow.com/questions/19491336/get-url-parameter-jquery-or-how-to-get-query-string-values-in-js

Then using Jquery again to pass that parent value into a hidden custom field.

From there you can retrieve it by doing this.

add_filter('cred_success_redirect', 'custom_redirect2',10,3);
function custom_redirect2($url, $post_id, $form_data)
{
    if ($form_data['id']==12 && isset($_GET['parent_website_id']))
        return '<em><u>hidden link</u></em>'.$_POST['my_hidden_field'];
    return $url;
}

Please try this and let me know if it helps.
Thanks,
Shane

#567540

Hi, thanks that makes sense. We will use that as the solution.

Really appreciate you helping with this - thank you.

Gary