Skip Navigation

[Resolved] Auto Pupulate GRavity Forms Field with data from Toolset custom field.

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

Problem:
Auto Pupulate GRavity Forms Field with data from Toolset custom field.

Solution:
If you want to display the current post title pre-populated with the field you can use [wpv-post-title] shortcode and pass it to value attribute.

For example:

[cred_field field='post_title' class='form-control' output='bootstrap' value='[wpv-post-title]']

You can find the proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/auto-pupulate-gravity-forms-field-with-data-from-toolset-custom-field/#post-1242016

Relevant Documentation:
=> https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-creating-content/

This support ticket is created 5 years, 8 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.

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)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Ray Mitchell 5 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#1241282

Tell us what you are trying to do?
I've created a custom post type for speakers (motivational, financial, etc.) and I need to pull the speaker's name field into a gravity form field dynamically. Say I'm on a speaker's profile page and a site visitor wants to inquire about booking the speaker whose page they're on. Well, I need the Gravity Form to automatically grab the name of the speaker whose page they're currently on. Example page here: hidden link

Is there any documentation that you are following?
I've scoured the documentation and cannot find anything close to what I want to do.

Is there a similar example that we can see?
Not that I'm aware of.

What is the link to your site?
hidden link

#1241324

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - this question is more related to Gravity forms and you may try to contact the Gravity forms support but after searching I found the following doc where it shows two method that either you should pass the param using shortcode or use the filter:

More info:
=> hidden link

#1241942

Can I achieve what I asked in my first post with Toolset Forms instead of using Gravity Forms? If so, please tell me how to do it. I really need to get this figured out and running for a client.

#1242016

Minesh
Supporter

Languages: English (English )

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

Well - you need to create a Toolset form that should be linked to post type.

Please check first and understand how Toolset form works. Please check the following Doc:
=> https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-creating-content/

If you want to display the current post title pre-populated with the field you can use [wpv-post-title] shortcode and pass it to value attribute. for example:

[cred_field field='post_title' class='form-control' output='bootstrap' value='[wpv-post-title]'

If you want to just go with Gravity forms, I already shared the following link:
=> hidden link

#1242302

My issue is resolved now. Thank you!