Skip Navigation

[Resolved] Moving vlaue from one from to ather form

This support ticket is created 4 years, 6 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.

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)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Shane 4 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#1673215

I want to pass values that are entered by a user from one form the other form (like a session in PHP). How can I do it?

#1673903

Shane
Supporter

Languages: English (English )

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

Hi Salim,

Thank you for getting in touch.

Is this form a completely separate form ? It is actually possible when you're redirecting to the next form as you can hook into the redirect and pass the values in a URL parameter and your next form can retrieve the values from the URL.

Take a look at this hook below.
https://toolset.com/documentation/programmer-reference/cred-api/#cred_success_redirect

You can essentially build a redirect URL with the values that you want to pass to the next form.

Please let me know if further assistance is needed with this one and I will be more than happy to assist.

Thanks,
Shane

#1680153

Where to add the hook code (cred_success_redirect function)?

#1680749

Shane
Supporter

Languages: English (English )

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

Hi Salim,

You can either add this to the functions.php file of your theme.

Or you can go to Toolset -> Settings -> Custom Code and then add the function there and ensure that you've click the activate button once you've added it.

Thanks,
Shane