Skip Navigation

[Resolved] How Toolset save the repeatable field group as a new post

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

Last updated by Minesh 3 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#2147437

Dear Sir/Madam,

I refer to https://toolset.com/forums/topic/using-cred-front-end-to-add-a-cpt-post-that-has-repeatable-groups/, may I know how Toolset save the repeatable field group as a new post, I create a CPT application and repeatable field applicant, I can create the new applicant from the backend but I can't find a page that I can view all applicants post, can I do that?

If I can view all applicants in a list, then I don't need to find which application that the applicant is associated, can it be done from WP dashboard or I have to have a View to do?

Is it possible to allow me to update the applicant without finding its parent application if it is treated as a new post?

Best regards,

Kelvin.

#2147569

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Do you mean that you want to display all applicant belongs to specific single post on single post page? If that is correct, to display the repeating field group entries, you will have to create a view.

Please check the following Doc:
- https://toolset.com/course-lesson/creating-and-displaying-repeatable-field-groups/

Is it possible to allow me to update the applicant without finding its parent application if it is treated as a new post?
==>
I do not understand this, can you please share test case. Do you mean that you want to create a new entry for "applicant " without attaching the parent? if that is correct - no, repeating field groups entries are internally store as a child post type and parent will be the one from where you are creating the repeating field group entry.

#2147595

Dear Minesh

If repeating field groups entries internally store as a child post type, how can I access them from the dashboard like child post?

What is the difference between creating a child post and creating a repeatable custom field? Do both look to make a post-relationship with a parent post?

No matter I create a new CTP or repeatable custom field, can I add the record using CRED the same way?

Best regards,

Kelvin.

#2147629

Minesh
Supporter

Languages: English (English )

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

If repeating field groups entries internally store as a child post type, how can I access them from the dashboard like child post?
==>
The repeating field group entries access will be available one edit post page.

What is the difference between creating a child post and creating a repeatable custom field? Do both look to make a post-relationship with a parent post?
==>
The difference between repeating field group and one-2-many post relationship is when you use repeating field group the one-2-many post relation relationship is maintain internally automatically between the single post and repeating field group entries you create where as using post relationship you will have to create one-2-many post relationship between your desired post type explicitly.

No matter I create a new CTP or repeatable custom field, can I add the record using CRED the same way?
==>
Here is the Doc that illustrates how you can add entry for repeating field group using Toolset forms:
- https://toolset.com/course-lesson/front-end-forms-for-repeatable-field-groups/

you can not add parent post (the normal post) + repeating field group entry using the single form.

#2147667

Dear Minesh,

Thanks for your explanation, other than the post-relationship is maintained internally, and custom make the relationship, any pros, and cons to different strategies?

The only difference is if I want to manage the applicant from the backend directly, I have to use child and parent post-relationship, any others?

#2147669

Minesh
Supporter

Languages: English (English )

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

As far as I can say not much but I would encourage you to have hands on experience of both. You can use our free test platform http://www.discover-wp.com and use any of our reference site that is build on top using Toolset and check what mode (repeating field group or post-relationship) suits best as per your requirement and then take next steps.

#2147745
Screenshot 2021-08-20 at 10.29.52 PM.png

Dear Minesh,

OK, I decided to use the post-relationship as I want to keep it simple to let the system administrator easily search the applicant from the backend and do the data update if need.

I have another question about the custom field condition, if you think it should be posted as a separate post, please do so.

Please refer to the attached screenshot, this is a sample of the relationship between application and applicant post, both have a common custom field Application Type, when I create a CRED form, how can I hide and show individual custom fields from the applicant when I change the Application Type from the parent post Application? I know how to set the condition in the custom field but how can I change the custom field Application Type in the Applicant post same as the Application Type in the Application post?

Best regards,

Kelvin.

New threads created by Minesh and linked to this one are listed below:

https://toolset.com/forums/topic/split-how-toolset-save-the-repeatable-field-group-as-a-new-post/

#2149363

Minesh
Supporter

Languages: English (English )

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

Yes - that will require a new ticket and I'll split the ticket with your new question and follow up there.

You are welcome to mark resolve this ticket.