Navigation überspringen

[Gelöst] Logged in user to be displayed in the Title of a Post Type Cred Form

This support ticket is created vor 5 Jahren, 8 Monaten. 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)

Dieses Thema enthält 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von Minesh vor 5 Jahren, 8 Monaten.

Assistiert von: Minesh.

Author
Artikel
#1249129

I need the Title of the Post Type Cred form to save the name and surname of the logged in user automatically.
How can I get that, please?

Also, is there a way I can add a Sign form field in Post Type and Cred, as Gravity Forms has?

Thank you.

#1249175

Minesh
Supporter

Sprachen: Englisch (English )

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

Hello. Thank you for contacting the Toolset support.

As I understand, you have a post form set to create a new entry for XYZ post type. And you want to store logged in user information automatically when user submit the post - correct? If yes:
- To what field you wanted to store the value?

Actually, you can use either add a generic hidden field and assign the current user information using the [wpv-current-user].
=> https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-current-user
=>https://toolset.com/documentation/user-guides/inserting-generic-fields-into-forms/

Or if you do not wish to add the generic hidden field, you can use Toolset form's API hook: cred_save_data
=> https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data