Home › Forums › Plugin Support › redirect for custom form (not login, registration or profile form)
- This topic has 8 replies, 3 voices, and was last updated 11 years, 4 months ago by mm.
-
AuthorPosts
-
June 25, 2013 at 10:26 am #3873August 8, 2013 at 9:58 am #4060mmMember
Any idea anyone? I still need a solution.
Thanks
August 10, 2013 at 5:27 am #4063SupportMemberHello, I am not sure what are you trying to accomplish. By UserMetaPro, any form should be login or profile or registration form and redirection occur after completing certain action (login,profile,registration)
If you put your above codes in functions.php (under your active theme), then user will be redirected to home url after verified their account.
Thanks
August 12, 2013 at 4:00 am #4066mmMemberHi,
Thanks for your answer.
But UserMetaPro doesn’t offer a redirection after completing the profile form, only after login, logout, signup.I would like to make this following sign-up steps possible:
1. User signs up with facebook connect (different plugin)
2. Logged in user then will be redirected to a page with custom form (UserMetaPro) to provide more profile details and select their user role.
3. Upon form completion and hitting the submit button, logged in user should be redirected to another page to invite facebook friends.>>> I need a solution on redirecting the logged in user to another page after submitting the custom UserMetaPro form.
Possible with UserMetaPra? Or should I get another plugin
Thanks!
August 12, 2013 at 4:46 am #4069SupportMemberAugust 12, 2013 at 5:27 am #4070mmMemberThanks, redirection works now.
I want this redirection only by completing a “profile completion” form in the initial flow.
When updating the profile form within the users account later one, the user shouldn’t be redirected after submitting the form. How can I have the redirection only to be true for the initial “profile completion” form and not the account profile form?Thanks.
August 12, 2013 at 9:55 am #4071dhaval@eoutsourcing.inMemberHi there,
I have some similar requirement for which i need some clarification. I want 3 step registration design. How to accomplish that? Also can we put if statements that if radio button 1 is selected, go to this page if radio 2, go to this.
Awaiting your reply.
Thanks
August 13, 2013 at 5:18 am #4076SupportMember@mm
Assume you have two profile form, one for profile completion and other are regular. And you can set redirection for profile completion form by checking form name. Here is an quick example:add_action( 'user_meta_after_user_update', 'user_meta_after_user_update_function' ); function user_meta_after_user_update_function( $response ){ global $userMeta; if( $_POST['form_key'] == 'Your_Form_Name' ) echo $userMeta->jsRedirect( 'http://example.com' ); }
@dhaval
You can check your radio button or any other date which is being posted by accessing $_POST variable and use any “if statement” as you like.Thanks.
August 13, 2013 at 9:31 am #4077 -
AuthorPosts
- You must be logged in to reply to this topic.