Skip Navigation

[Résolu] Logged in user to be displayed in the Title of a Post Type Cred Form

This support ticket is created Il y a 5 années et 6 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Minesh Il y a 5 années et 6 mois.

Assisté par: Minesh.

Auteur
Publications
#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

Les langues: Anglais (English )

Fuseau horaire: 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