Skip Navigation

[Resolved] Set Relationship Intermediary Post title on cred_save_data?

This support ticket is created 6 years, 6 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 3 replies, has 2 voices.

Last updated by Beda 6 years, 5 months ago.

Assisted by: Beda.

Author
Posts
#924877

Hi!
I've created an Intermediary post relationship (many-to-many) and a Relationship Form to connect parent and child post.
It's working ok.
When creating a new connection, title is set as - Relationship name + post parent ID + post parent child -
I would need instead: post parent title + post parent child.
I don't find any save data hook for relationship forms.

Is there any documentation that you are following?
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data

Is there a similar example that we can see?
Nop. I've been searching for it.

Thank you in advance
Best regards
Jaume

#925010

It does not seem to me there is a public API for this.

I see the forms for relationships use a new $form_object which holds the data I would require to craft a code but there is no filter by my knowledge in Toolset Forms Code that allows me to hook it to the Forms Submit action.

There is some Public API in the code but not entirely related to this.

I am querying with the Developers how we should proceed here.

#935842

Thank you, Beda!

#948949

There is no API yet for Relationship Forms.

We added this as a request and will implement this in future, eventually along with a refactor of the current Toolset Forms API.

For now you'd need to use single Post or User Forms, if you intend to use the API for Forms.