Skip Navigation

[Resolved] Toolset Form Edit Link Displays Form Edit in Weird Location

This thread is resolved. Here is a description of the problem and solution.

Problem:

How to display the Toolset editing post form inside the modal.

Solution:

You can display the edit post form in your modal window with Toolset Forms shortcode directly, for example:

[cred-form form="edit-post-form-slug"]

Relevant Documentation:

https://toolset.com/documentation/programmer-reference/forms/cred-shortcodes/#cred_form

This support ticket is created 3 years, 10 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 – 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)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by saint 3 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1972777

Tell us what you are trying to do?

I am doing frontend edit to a CPT using Toolset Forms and two things:

1.) It is showing up in a container in a location and I'm not sure why it's displaying there. How do I control where the edit form appears?

2.) How do I constrain it so that the editable form stays inside the modal that I called it?

Is there a similar example that we can see?

hidden link

What is the link to your site?

hidden link
hidden link

Please let me know if there is anything I can do to help make things clear. Thank you!

#1972899

As a follow-up, is there a way to use Oxygen, or even the [toolset-edit-post-link content_template_slug='talent-cpt-template-for-edit-all-form-v0-1' target='self']Edit[/toolset-edit-post-link] shortcode itself to instead of generating the "link" to the edit form -- to just generate/display the edit form content itself?

This would offer a lot of flexibility and power in terms of the UI -- but more importantly, the UX of the authoring flow.

Example: hidden link

#1973319

Hello,

The Toolset content template works in post content area, for example in WordPress default theme 2021, it works in the area of theme file \twentytwentyone\template-parts\content\content-single.php, line 23:

the_content();

In your case, you can display the edit post form in your modal window with Toolset Forms shortcode directly, for example:

[cred-form form="edit-post-form-slug" ]

More help:
https://toolset.com/documentation/programmer-reference/forms/cred-shortcodes/#cred_form

#1975367

My issue is resolved now. Thank you Luo!