Skip Navigation

[Resolved] User Form Submission Short Code

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 1 voice.

Last updated by Minesh 6 months, 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#2784745

I have a Civic League site.

Each year the civic league sells new memberships and also has to renew existing memberships... so I have set up 2 TOOLSET User forms to do this. The forms are attached to a Woocommerce product and the forms are set up to be sent as emails after the visitor has checked out ("When payment is complete").

I am having difficulty getting some of the form fields correctly sent via email. This only happens on the "New Membership - Account Creation Form".
The "Renew Membership - Account Update" form seems to work as expected.

The issue is with the following fields...
First Name
Last Name
Email

In the Renew Membership - Account Update form I am using:

<div class="form-entry-line"><b>Name:</b> [wpv-user field="user_firstname"] [wpv-user field="user_lastname"] </div>
<div class="form-entry-line"><b>Email:</b> [wpv-user field="user_email"]</div>

This is working fine.

In the New Membership - Account Creation Form I am trying everything. I am currently using...

<div class="form-entry-line"><b>Name:</b> [wpv-user field="user_firstname"] [wpv-user field="user_lastname"] | [types usermeta='first_name' user_is_author='true' user_id="%%USER_USERID%%"][/types] [types usermeta='last_name' user_is_author='true' user_id="%%USER_USERID%%"][/types]</div>
<div class="form-entry-line"><b>Email:</b> [wpv-user field="user_email"] | [wpv-user field="user_email" user_is_author='true' user_id="%%USER_USERID%%"] | [types usermeta='billing_email' user_is_author='true' user_id="%%USER_USERID%%"][/types]</div>

None of the shortcodes above in the New Membership - Account Creation Form are working.

#2785246

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

What if you try to use the placeholders with your form's email notification:

First Name: %%USER_FIRST_NAME%%
Last Name:  %%USER_LAST_NAME%%
Email : %%USER_EMAIL%%

You can use those placeholders but if you want to use the shortcode then you can chose the following method:

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