Skip Navigation

[Resolved] After submitting user form – cannot call page

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 5 replies, has 2 voices.

Last updated by a.R 1 year, 11 months ago.

Assisted by: Minesh.

Author
Posts
#2333001

a.R
problem a.R user form.jpg

One cannot choose the post type PAGE here.

How change that?

Is it possible to call hidden link after submitting?

Thank you 🙂

#2333317

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

It seems you want to redirect the user after successful form submission to the single profile page - is this correct?
- If yes, I see you are using addon buddypress plugins.

Can you please share information where on what page you added the user form and also confirm to what profile page you want to redirect the user.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2333393

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

As I understand - the form is to edit the current loggedin profile: hidden link
- Correct?

#2333585

a.R

right.

#2333641

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I've added the following Toolset form's redirection hook to "Custom Code" section offered by Toolset:
=> hidden link

add_filter('cred_success_redirect', 'func_redirect_edit_profile_submit',10,3);
function func_redirect_edit_profile_submit($url, $post_id, $form_data){
    if ($form_data['id']==4035){
      global $current_user;
      $url = bp_core_get_user_domain($current_user->ID)."profile";
      
    }     
  
    return $url;
}

Can you please check now: hidden link
- Once you submit the form it should be redirected on user profile page.

#2337127

a.R

Looks good, thank you 🙂

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.