Skip Navigation

[Resolved] Link to post form

This support ticket is created 4 years, 7 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Stina 4 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#1658829

I want to create a link to a form adding a child post like this:
https://toolset.com/documentation/post-relationships/selecting-parent-posts-using-forms-create-child-items/

What I don't get is what link to put in the button.

I have created a form and it works as expected when I have it on the parent page content template, but it would be nicer to only have a button and not the full form. It doesn't work if I have the form on a page and link to the page.

I guess it's very easy and obvious when I get it, but so far all the documentation I've read have not given me the solution.
Thanks in advance!

#1659041

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2020-06-11 at 2.49.22 PM.png
Screenshot 2020-06-11 at 2.49.32 PM.png

Hi Stina,

Thank you for getting in touch.

If you scroll down on the page to here.
https://toolset.com/documentation/post-relationships/selecting-parent-posts-using-forms-create-child-items/#creating-forms-when-a-parent-post-is-preselected

You will see a short description on how to have the button.

Essentially you will need to create a content template and insert the form onto that content template.

Then go back to the Parent post content template and insert a Field and Text Block and use the Forms button to insert the Child Post Link. See My Screenshot.

Please let me know if this helps.
Thanks,
Shane

#1660515

Hi,
Yes, it works!
Though I don't think I needed the content template, only a page with the form.
And it's not a button but a link.
Thank you!
Stina

#1660611

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stina,

You will need to customize the link with a bit of custom css so it appears like a button.

Also yes you do need the content because this is what generates the dynamic page for the form. Adding the form to a regular page doesn't work, unless you manually create a link to it and pass the correct parent parameter value into the URL of the link.

Thanks,
Shane

#1674857

Thank you!