Skip Navigation

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

This support ticket is created hace 5 años, 6 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Minesh hace 5 años, 6 meses.

Asistido por: Minesh.

Autor
Mensajes
#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

Idiomas: Inglés (English )

Zona horaria: 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