Skip Navigation

[Resolved] User data not included in e-mail

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

Problem:

The issue here is that the user wanted to display the user information in their notifications.

Solution:

An example of this can be seen below.
[wpv-user field="user_firstname" id="%%USER_USERID%%"]

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

Tagged: 

This topic contains 13 replies, has 2 voices.

Last updated by Marcel 6 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#1105516

I am trying to: display the first name and last name that the user fills in in the confirmation e-mail

In the form, I'm using

<div class="form-group">
<label>First Name</label>
[cred_field field='first_name' value='' urlparam='' class='form-control' output='bootstrap']
</div>

<div class="form-group">
<label>Last Name</label>
[cred_field field='last_name' value='' urlparam='' class='form-control' output='bootstrap']
</div>

In the e-mail, I'm using

[wpv-user field="user_firstname"] [wpv-user field="user_lastname"]

#1105636

Shane
Supporter

Languages: English (English )

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

Hi Marcel,

Could you add this to your notifications and let me know what the results is ?

%%POST_ID%% or %%USER_ID%%

I believe one of those should give the ID of the user that is created then you should be able to do this.
[wpv-user field="user_lastname" id='%%POST_ID%%']

Thanks,
Shane

#1106636

Hi Shane,

Sorry, both options don't work.

#1107682

Shane
Supporter

Languages: English (English )

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

Hi Marcel,

The best we have right now is to use the %%FORM_DATA%% placeholder as this will give you all the information that the user enters.

It seems that we don't have a way to add the individual items as yet.

Thanks,
Shane

#1108010

Hi Shane,

According to this article it should be possible to include custom user fields in e-mail : https://toolset.com/documentation/user-guides/cred-user-forms-email-notifications/.... When I sent a test e-mail from the admin, it does fill in the right data.

#1108356

Shane
Supporter

Languages: English (English )

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

Hi Marcel,

Are you saying that these code fill in the correct data in your email?
[wpv-user field="user_firstname"] [wpv-user field="user_lastname"]

#1109335
toolset-mail.jpg
toolset-form.jpg

Hi Shane,

When I sent an e-mail via the test e-mail function under the form, it will include the admin username when I use those shortcodes. So it won't include the first name and last name like it should, but the username. See attached screenshots.

You have the login credentials btw, so feel free to try things and set the e-mail address to your own. The system is not live yet so you can do that.

#1109490

Shane
Supporter

Languages: English (English )

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

Hi Marcel,

It seems that I would need to escalate this one but first can you confirm that when a new user is created that No data is added to the email? Meaning the First and Last name of that user is Not added to the email.

Thanks,
Shane

#1109493

Hi Shane,

Please do (escalate). I can confirm that the first and last name aren't added to the e-mail when someone fills in the form.

The login credentials (user name and password) are added though, just not the first and last name.

Thanks for you help so far.

#1109507

Shane
Supporter

Languages: English (English )

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

Hi Marcel,

I've escalated this ticket.

Will let you know if there are any updates.

Thanks,
Shane

#1111562

Shane
Supporter

Languages: English (English )

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

Hi Marcel,

Just an update here. Could you try the fields with the parameter user_id=”%%USER_USERID%%” ?

Please add this to the fields and let me know if it helps.

Thanks,
Shane

#1111696

Like this?

[wpv-user field="user_firstname" user_id="%%USER_USERID%%"] [wpv-user field="user_lastname"
user_id="%%USER_USERID%%"]

That doesn't work unfortunately...

#1112349

Shane
Supporter

Languages: English (English )

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

Hi Marcel,

There seems to be some error in our documentation.

I tried it like this and it worked
[wpv-user field="user_firstname" id="%%USER_USERID%%"]

Please let me know if this helps.
Thanks,
Shane

#1112413

Yes, this does work! Thanks!