Skip Navigation

[Résolu] _wpcf_belongs_ not being returned by Cred form

This support ticket is created Il y a 6 années et 4 mois. 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
- 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)

This topic contains 1 réponse, has 2 voix.

Last updated by Minesh Il y a 6 années et 4 mois.

Assisted by: Minesh.

Auteur
Publications
#589048

I have a pretty complex situation in place which was working perfectly fine until now. The change was updating my toolset plugins to the latest versions which has broken the functionality. I don't know exactly which versions I was on previously but they were last updated around 3 months ago.

Let me try to summarise the setup:

- I have a fulfillment post type that has a custom content template
- On a single fullfillment post I add a child cred form using [cred_child_link_form form="2090" parent_id="-1" target="_self"]. 2090 is a page ID that contains my cred form embedded as such: [cred_form form='12988' form_name='Assign Restaurant 2.0']
- In that CRED form, I use [cred_field field="_wpcf_belongs_fulfillment_id" value=""] to get the ID of the single fulfillment page that the form is being displayed on.
- I then have a custom function that runs when the form is submitted that manipulates the data and does what I need it to.

I have some logging taking place which has allowed me to realise that since updating, my "_wpcf_belongs_fulfillment_id" variable is missing from the CRED form post data

Are you able to provide any insight as to what might have changed that has caused this variable to stop coming through?

#589065

Minesh
Supporter

Languages: Anglais (English )

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

Hello. Thank you for contacting the Toolset support.

Well - I just check with my test install and I can see the select dropdown is successfully loaded with the parent option.

I would like to know the issue is select dropdown for parent is not rendered or the issue is the parent is not attached to the newly created child? If issue is parent ID is not attached to newly created child I would like to check what code you have added to attach parent ID to newly created child post?

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.