Skip Navigation

[Resolved] Notification to user using generic field

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

Problem:
Notification to user using generic field

Solution:
To send notification to current loggedin user you should try to add the generic field:

[cred_generic_field type='hidden' field='current_user_id']
{
"default":"[wpv-current-user info="id"]",
"generic_type":"user_id",
"persist":1
}
[/cred_generic_field]

You can find the proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/notification-to-user/#post-1230910

Relevant Documentation:
https://toolset.com/documentation/user-guides/automated-email-notifications-with-cred/#send-email-notification-to-a-user-specified-in-a-generic-field

This support ticket is created 5 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
- 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 2 replies, has 2 voices.

Last updated by mattL-11 5 years ago.

Assisted by: Minesh.

Author
Posts
#1230900

Hi,

I'm trying to get a notification back to the current user who submits a cred form. It doesn't seem to be working.

#1230910

Minesh
Supporter

Languages: English (English )

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

I just checked and for me it's working.

This is how I've added the generic field which holds the current user ID:

[cred_generic_field type='hidden' field='current_user_id']
{
"default":"[wpv-current-user info="id"]",
"generic_type":"user_id",
"persist":1
}
[/cred_generic_field]

And with form's email notification settings - I chose the option "Send notification to a WordPress user with an ID coming from a generic field in the form:" and select the option "current_user_id".

#1230911

My issue is resolved now. Thank you!

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