Skip Navigation

[Resolved] New user form notification turns out blank for the user fields

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

Problem:
The user was having blank fields in a user form notification.

Solution:
Use "id" instead of "user_id" as an argument for the "wpv-user" shortcode:

[wpv-user field="user_registered" id="%%USER_USERID%%"]

Relevant Documentation:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-user

This support ticket is created 3 years, 5 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9: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: Africa/Casablanca (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by andrewD-10 3 years, 5 months ago.

Assisted by: Jamal.

Author
Posts
#1806605

Hi toolset,

The fields for the new user shows up blank in the email notification after a user submits the "create new user" form. This video helps explain everything: hidden link

Reference to prior ticket: https://toolset.com/forums/topic/user-creation-notification-email-fields-blank/

Here is the notification code:

Dear BidAmerica Admins,
<br>
A new customer has entered payment information for their account. Please go to <a href="hidden link">hidden link; and add the new customer on Stripe.
<br>
Registered: [wpv-user field="user_registered" user_id="%%USER_USERID%%"]
User ID: [wpv-user field="ID" user_id="%%USER_USERID%%"]
Email: [wpv-user field="user_email" user_id="%%USER_USERID%%"]
Customer: [wpv-user field="user_firstname" user_id="%%USER_USERID%%"]
Company: [wpv-user field="user_lastname" user_id="%%USER_USERID%%"]
[wpv-user field="user_email" user_id="%%USER_EMAIL%%"]
<br>
Copy the email to make the necessary searches.

#1806855

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+00:00)

Hello and thank you for contacting the Toolset support.

Please try to use "id" instead of "user_id" as an argument for the the "wpv-user" shortcode:

[wpv-user field="user_registered" id="%%USER_USERID%%"]

Read more about the shortcode here https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-user

I hope this helps. Let me know if you have any quesitons.

#1808995

Thank you Jamal, worked perfect 🙂

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