Skip Navigation

[Resolved] The User Profile Update is not saving the user's information

This support ticket is created 5 years, 9 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 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqas 5 years, 9 months ago.

Assisted by: Waqas.

Author
Posts
#1202024

hey Guys,

I am trying to have a user update their own info, but the details submitted on the registration does not show in the edit page, nor does the values show after re-saving them...

Would you please be able to assist?
An example link would be hidden link

#1202226

Waqas
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

I just examined the said page and the form used on the page, and found that the form is using Generic Field types for all of the additional fields (i.e. ID Number, Contact Number and etc).

For generic fields there are a few facts you need to consider:
- A generic field, although renders as a form field on frontend, but is independent of the form mechanics.
- In the light of above point, a generic field DOES NOT save it's content as part of the form. Or in other words, Form does not saves generic field data automatically.
- You have to manipulate a generic field, while the form is being saved (or submitted). So you can play with the data contained by these fields (i.e. validate and save).

Keeping above in mind, this is the reason your form is not saving those additional fields.

I'll recommend you to:
- use Types Custom User Fields (see Toolset -> Custom Fields -> User Fields) to create and attach additional fields with a user profile.
- then edit your form and include these fields on the form (created using Types) and remove their generic field counterparts.
- save the form

Now, if you visit the form on frontend, fill/change the contents of the fields and submit - it should be saved correctly.

As an example, I have created:
- A test form to update user profile (see Toolset -> User Forms).
--- This form uses one of your existing Custom User Fields Group. Although this group only contains 1 field, but is a good example of what I have described above. You can add more fields to this group or can create a new one. But in either case, remember to edit your form to include these fields on it.
- A test page to present this test form on frontend (see Pages).
- A test user, which I used to login and update the profile using this test page (see Users).

On the other hand, if you still insist on using Generic Fields for your form, please consider reading the guide (https://toolset.com/documentation/user-guides/inserting-generic-fields-into-forms/) about it. Specially take a look at "Processing Generic Fields" section.

I hope this will help you understand the role and usage of Generic Fields, as well as, will help you fix the issue with your form. Please feel free to write back about any confusion.

Have a nice day!