Viewing 8 Topics - 46 through 53 (of 53 total)
Author Posts
October 8, 2015 at 8:57 pm 74353
MareVisie MareVisie

The fields still don’t save their values…

Did The Developer change my code or the plugin’s code?

October 9, 2015 at 4:35 pm 74377
MareVisie MareVisie

Hi Towhid,

I found out why it wasn’t working. I used identical meta_keys to ones already used in the fixed form elements. I’m hugely embarrassed, but now the code works fine. I’m sorry to have wasted so much of your and other’s time.

October 9, 2015 at 4:59 pm 74378
MareVisie MareVisie

Hi Towhid,

I’m afraid I have cheered to soon. The fields only work on the administrator account, on none of the other accounts they work.

October 10, 2015 at 10:48 am 74413
towhid towhid

Hello MareVisie,

Thanks for the reply!
Can I see the meta_keys you mentioned? Any screenshot or any other medium is ok.

Thanks

October 10, 2015 at 12:55 pm 74423
MareVisie MareVisie

Hi Towhid,

In Registration Form with ID = 199 using the Edit Profile: [wpuf_profile type="profile" id="199"] I have following fields:

meta_keys

As you can see the meta_keys are now edu_programme2 respectively edu_institute2, but they originally were edu_programme and edu_institute. However, the fields added by the action hookeducation-hook still don’t save their values. In the code I used the following code:


function update_education_hook( $post_id ) {
    if ( isset( $_POST['education_institute'] ) ) {
        update_post_meta( $post_id, 'edu_institute', $_POST['edu_institute'] );
    }
}
add_action( 'wpuf_add_post_after_insert', 'update_education_hook' );
add_action( 'wpuf_edit_post_after_update', 'update_education_hook' );
	?>

As you can see I’ve only added the edu_institute to the update_education_hook function. However, nothing ever gets saved…

October 10, 2015 at 1:07 pm 74425
MareVisie MareVisie

Here’s a storyboard of what’s going wrong. As you can clearly see the values don’t save after a succesful profile update:




October 12, 2015 at 2:23 pm 74495
MareVisie MareVisie

Were the screenshots useful? Any updates?

October 21, 2015 at 5:28 pm 74877
towhid towhid

Hello MareVisie,

I am really sorry for my late reply!

I’ll reach out my developer team now and follow up you by the sunday morning. Our office will be closed for Durgapuja. We’ll be available from Sunday.

Thanks

Viewing 8 Topics - 46 through 53 (of 53 total)