Skip Navigation

[Resolved] Create parent-child CRED form

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 13 replies, has 2 voices.

Last updated by kelvinL-2 3 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#2148937

Dear Sir/Madam,

Could you help to provide me a tutorial on how I can create parent-child CRED from. I have a parent post application and child post contestants, I think I have to create and save a parent and then create the child post, please instruct me how to do that.

Best regards,

Kelvin.

#2148943

Could you please advise which discover-wp does the similar CRED form?

#2149309

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Yes - that is correct.

You need to create a parent post first and then you should create a child post.

There are certain ways how you create a child post. Please check the following Doc:
- https://toolset.com/course-lesson/selecting-parent-posts-when-using-forms-to-create-child-items/

You can either set a child post link to create a child post or create a page where you added your child form and the parent ID should be coming from the URL param.

#2149819

Dear Minesh,

May I know which discover-wp has similar sample?

#2149857
Screenshot 2021-08-23 at 11.13.22 PM.png

Dear Minesh,

How can I do the parent/child post like screenshot? The parent is selected by passing the url parameter, and by default a ADD button is showed, every time I click the Add button, it save the child post and create another new child post. If I click the DEL button, then delete the child post.

Is it possible to do? if not any other way that I can repeatedly add new child post from the parent post?

Best regards,

Kelvin

#2149885
Screenshot 2021-08-23 at 11.40.41 PM.png

Dear Minesh,

Sorry missing report I got error when viewing the page with parent content template

#2150255

Minesh
Supporter

Languages: English (English )

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

The thing is that I still do not get the idea how exactly you want to structure.

Basically, you should list all parent post using the view and just besides that a button that says "Add Child Post" when you click on that it will redirect you on another page "Add Child Post" having parent post ID in URL param where you can add the child post and just below the form you can add the child post list using the view.

Does that sounds Ok?

If that sounds ok - if you want me to setup a demo for you on your install, please share admin access details and what relationship you want to build that structure.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2150727

Dear Minesh,

As my site is now developing in a local server, can't giving Internet access from an external user, you can show me how I prepare the link of the button from the parent post and also the expert mode of the child post.

Actually, what I want to do is adding the inline child post, please refer to hidden link, you can consider that each row is the child post and I can click the Add button to create a new child post for updating, so that I can add as many as child post on the same page, can do?

Best regards,

Kelvin.

#2151077

Minesh
Supporter

Languages: English (English )

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

It could be achieved but bit different way.

Please check the following page - where I've added the child post form that will allow you to create a child post for the Student ID: 1735
hidden link

Below the form we display the view that lists all available child post belongs to Student ID: 1735 under title "LIST of ALL Child post belongs to this student is:" where we also display the "Delete"" post link to delete the child post.

You will not have access to the site as I'll require your IP to whitelist the IP address.

Please check the following screenshot where you will find form at top and all related child post to specific student (ID: 1735) at bottom:
=> hidden link

#2151193

My IP address is 223.16.137.20

#2151197

Minesh
Supporter

Languages: English (English )

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

I've white listed your IP address.

#2151313
Screenshot 2021-08-25 at 6.42.51 PM.png

Dear Minesh,

I think you misunderstood my question, I know how to add a new child post but I want to add several child posts, I tried your sample after I submit, it reloads the page but no need child post record show again.

Is it possible not to reload the page when submission and automatically add the new child post under the list?

#2151377

Minesh
Supporter

Languages: English (English )

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

No - there is no such feature available that when you click on Add button it will bring you a blank form and it will be saved without reloading the page.

#2152859

My issue is resolved now. Thank you!