Skip Navigation

[Resolved] Custom field to select a Gravity Form

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

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 2 years, 11 months 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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)

This topic contains 2 replies, has 2 voices.

Last updated by hispavista-s.l.E 2 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#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!