Skip Navigation

[Resolved] Should I use post or user fields? User fields not showing in form

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user's custom fields are not being added to their User Forms
Solution:

In a case like this I would recommend that you auto generate the form if you are working with a new form.

If its an already created form then you can add the user fields by going to a button called "Add Fields" This should allow you to add your missing fields.

This support ticket is created 6 years 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)

This topic contains 7 replies, has 2 voices.

Last updated by tanjaN 6 years ago.

Assisted by: Shane.

Author
Posts
#1176885

Hi there!

I'm trying to create a plattform where users can register or be registered by the admin and later on complete/update parts of their data. I am new to this part of Toolset, so I first did the basic functionality with post fields and post forms, which worked fine. Then I realized that I probably need to switch to user fields and forms because I need to make sure that each user only sees their own data and not everyone's, kind of like in your membership site tutorials. However, I need the admin to be able to see everyone's data in either the custom post type or a view. Can I do that with the user fields or should I stick to the post fields?

So now I am trying to create a form to register users. With the "auto generate" it works fine, but I need more fields. I already created three sets of custom user fields that I would now like to insert into my register user form. I clicked on "Fields and Views" and inserted the custom user fields. On the page where I inserted the form, nothing showed. I added labels which do show and updated the privacy settings of the field group so that they can be seen by every user role (which is not the purpose, just wanted to test). Still, the fields don't show. What am I missing?

Thank you very much!

#1176914

Shane
Supporter

Languages: English (English )

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

Hi Tanja,

Thank you for contacting our support forum.

On the user form there should be a button called "Add Fields" This should allow you to add your missing fields.

Thanks,
Shane

#1176937
User form.jpg

Hi Shane!

I did that, but they do not show in the frontend. The code in my form editor is this:

[creduserform]
	[cred_field field="form_messages" class="alert alert-warning"]
	<div class="form-group">
		<label>Benutzername</label>
		[cred_field field="user_login" class="form-control" output="bootstrap"]
      <label>E-Mail</label>
	[types usermeta='user-e-mail' separator=', '][/types]
      <label>Anrede</label>
      [types usermeta='user-anrede' user_is_author='true'][/types]
	</div>
	[cred_field field="form_submit" output="bootstrap" value="Einsenden" class="btn btn-primary btn-lg"]
[/creduserform]

You can see the result in the screenshot. The labels show, the fields do not. (The error message says: "There was a problem with the -field. Please check the CRED form."

What am I missing?

Thanks,
Tanja

#1176951

Shane
Supporter

Languages: English (English )

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

Hi Tanja,

This normally happens when the fields are not Created in Types.

Would you mind allowing me to have a look around on the form just to ensure that everything is setup correctly ?

Sometimes it can be difficult to give a correct answer based on the screenshots only.

Thanks,
Shane

#1176958

Shane
Supporter

Languages: English (English )

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

Hi Tanja,

Thank you for the credentials.

I tried it but its saying invalid username.

Could you try and let me know if you can get in.

Thanks,
Shane

#1176959

Hi Shane!

Sorry, I made a typo. It should work now, could you please try again?

Thanks,
Tanja

#1176963

Shane
Supporter

Languages: English (English )

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

Hi Tanja,

It seems the field was using the incorrect name for the email field for the user.

Should now be working.

#1176967

Hi Shane!

Now I can even pick the custom fields form the "add field", before I needed to click on "fields and forms".

Thank you very much!

Best,
Tanja