Skip Navigation

[Resolved] Adding Repeatable Group into an existing edit form for editing a custom post

This support ticket is created 4 years, 3 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 3 replies, has 2 voices.

Last updated by Luo Yang 4 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1732033

Hi

Tell us what you are trying to do?

I'm trying to expand an existing form for editing an existing single custom post by adding to it a repeatable group.

Example (fictitious):

I have

- Custom post: COMPANIES with a link to edit it in the front end with form
- Custom fields: REGION, COUNTRY, CITY, INDUSTRY, and so on (all sort of many existing custom fields)
- Form: edit existing COMPANY in the front end

I want to achieve

Repeatable group MANAGEMENT with custom fields (POSITION, PHOTO, NAME, EMAIL, and so on) and add it to the existing form of editing the custom post in the front end. The MANAGEMENT group is unique to each custom post COMPANY. So for instance, John, Mark, Sara and their email, photo and other personal details can only belong to one custom post COMPANY at a time. One-to-one relationship meaning each unique repeatable group belongs to one single company custom post.

- Create a repeatable group: MANAGEMENT
- Create inside it custom fields: POSITION, NAME, EMAIL and so on

Now, in my workflow, I went to the form to add the repeatable group to it, I couldn't find the repeatable group. I found documentation and other links in the topics but they aren't useful to solve my problem.

PROBLEMS
I followed this documentation for adding repeatable group with existing data

https://toolset.com/course-lesson/front-end-forms-for-repeatable-field-groups/

- the problem is that the view with the newly created form (with repeatable group ) can't integrate seamlessly into the existing page with the already existing form for editing the single post.

- I get many submit buttons for the same form
- The link to edit the single post in the front end disappears

My question is:

Is there a simple way to extend an existing form to edit custom post with a repeatable group?

If this feature doesn't exist, would it be possible to include it in the coming updates?

Is there any documentation that you are following?

https://toolset.com/course-lesson/front-end-forms-for-repeatable-field-groups/
https://toolset.com/forums/topic/workaround-suggestion-for-repeatable-fields/
https://toolset.com/forums/topic/does-front-end-forms-for-repeatable-field-groups-work/#post-1204392

What is the link to your site?

hidden link

I hope to hear from you soon.

Best regards,

#1732789

Hello,

You are right, the feature does not exist.

Toolset Repeatable Field Groups are based on one-to-many relationship, so each item of Repeatable Field Groups is also a single post, but Toolset post form can handle only one post each time, you can not edit/create the post and it's Repeatable Field Groups in one post form, you will need to follow our document to setup anther post form for the Repeatable Field Groups items:
https://toolset.com/course-lesson/front-end-forms-for-repeatable-field-groups/

We do have a plan to add this feature into Toolset Forms plugin, but I am not sure when will it be implemented, and I don't think it is possible within next version of Toolset Forms plugin.

#1732925

Thank you Luo Yang

The good news is this feature is coming the bad news is that the tutorial is a bit cumbersome and I can't achieve it easily with the complex form that I have now.

Could you please add a short video tutorial or screen recording how to do this ? Maybe a short video adding to the document would be helpful to many others who wish to achieve this result.

https://toolset.com/course-lesson/front-end-forms-for-repeatable-field-groups/

Best regards,

#1733755

The Toolset Repeatable Field Groups are based on one-to-many relationship, so you can follow below document to setup the child post form:
https://toolset.com/documentation/post-relationships/selecting-parent-posts-using-forms-create-child-items/

There are detail steps and screenshots in above document, for your reference.