Skip Navigation

[Resolved] Gravity Forms Advanced Post Creation doesn’t feed into Toolset File Field

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

Problem:

How to use other plugin to update custom file field value.

Solution:

The custom file field created with Toolset Types plugin stores file URL value, you can simple try these:
In WP admin side, create a post and setup the custom file field value in normal way, you should be able to see the field value.

So in Gravity Forms side, you will need to make sure you are storing file URL value into the custom field field.

Relevant Documentation:

This support ticket is created 4 years, 2 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
- 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 Jonathon Hanten 4 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#1834467
Screen Shot 2020-11-04 at 8.56.36 AM.png
Screen Shot 2020-11-04 at 8.56.13 AM.png

Tell us what you are trying to do? I am collecting data with a Gravity Form and then using their Advanced Post Creation Add on to populate a CPT I created with Toolset . Everything feeds correctly with the exception of Date, Image, and File fields.

The date was always storing the current date instead of the one from the field. I have found a solution to fix the date problem (converting it to unix time stamp).

The image field and the file field was storing the Gravity Forms Upload URL instead of the one from the Media Library. I found a solution for the conversion from Gravity forms File Upload field to Toolset Image field using Gravity Forms {apc_media} merge tag, but I can't seem to get that to work for the File Upload Field. It just remains blank after the conversion (which is what the image one did before the {apc_media} trick. I'm assuming there is something different between the image and file fields. I'm looking for suggestions. I originally started this with your toolset Forms, but it failed to work properly for taxonomies and some custom fields. Plus Gravity Forms is much cleaner so I would like to stay with it.

I have tried setting up the feed from GF to the Toolset CPT in two ways.

1. A direct link GF File Field to wpcf-document and that works, but maintains the GF file upload URL instead of the Media Library URL. This worked for the File field and the image field.
2. Used GFs apc_media merge tag for documents and the media fields. This caused the image field to store the correct media library url, but the file field is now storing empty again.

Is there any documentation that you are following?

https://toolset.com/forums/topic/gravity-forms-date-field-compatibility-issue/
hidden link
hidden link
hidden link

I am submitting this ticket to you and to GF to try and figure out the problem. I think it is a formatting issue like the date. Any suggestions would be greatly appreciated. The site is live, but I would still like to fix this so the data stored for the CPT isn't still relying on the Gravity Forms Upload URL path since that goes away if the stored entry in the form is deleted.

Thank you.

#1835229

Hello,

The custom file field created with Toolset Types plugin stores file URL value, you can simple try these:
In WP admin side, create a post and setup the custom file field value in normal way, you should be able to see the field value.

So in Gravity Forms side, you will need to make sure you are storing file URL value into the custom field field.

#1835657

My issue is resolved now. Thank you!

It turns out I had a typo that was causing the whole problem. Have a great one and thank you all for Toolset. It saves me a whole lot of time.