Skip Navigation

[Resuelto] Custom field to select a Gravity Form

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:

Is there any way to connect a custom post with a gravity form ?

Solution:

It needs custom codes, for example:

https://toolset.com/forums/topic/custom-field-to-select-a-gravity-form/#post-2235735

Relevant Documentation:

This support ticket is created hace 2 años, 12 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por hispavista-s.l.E hace 2 años, 12 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#2235403

Is there any way to connect a custom post with a gravity form ?

At first, I thought using the Post relationship field to have a selector of created forms, but they are not listed.

What I want to achive is to be able to display different forms in a Content template.

#2235735

Hello,

There isn't such kind of built-in feature within Toolset plugins, the gravity form isn't our products, it is out the range of Toolset support.

In my opinion, after user submit the gravity form, you can use some specific action hook to trigger a custom PHP function, for example WP built-in action hook save_post:
https://developer.wordpress.org/reference/hooks/save_post/
In this custom PHP function, related it with other posts with Toolset relationship API function toolset_connect_posts():
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_connect_posts

#2236261

My issue is resolved now. Thank you!