Skip Navigation

[Resolved] Number of edit forms

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

Problem: I would like to know if it is possible to have multiple edit post forms that can operate on the same content.

Solution: Yes any number of edit post forms are supported for the same content. You can create multiple Edit Post Forms for the same post type, set the resulting post status per Form, and display the Forms conditionally based on the current User's role, using Access Control shortcodes, conditional shortcodes, or conditional blocks in the block editor.

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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by ericW-5 3 years, 10 months ago.

Assisted by: Christian Cox.

Author
Posts
#2003425

Hi,

is it possible to have several front end edit forms for the same content.

For example for the same post I would need :
- an edit form for a specific role to directly modify a post type (published)
- an edit form for another role to be able to send a modification request (post pending review)

Or for the same post I would also need to have
- an edit form to change only the title
- another edit form to change only the images

Thanks in advance for your answers
Regards
Eric

#2003737

is it possible to have several front end edit forms for the same content.
Hello, yes any number of edit post forms are supported for the same content. You can create multiple Edit Post Forms for the same post type, set the resulting post status per Form, and display the Forms conditionally based on the current User's role, using Access Control shortcodes, conditional shortcodes, or conditional blocks in the block editor.

Or for the same post I would also need to have
- an edit form to change only the title
- another edit form to change only the images

Sure, you can use separate Forms to edit individual pieces of content without modifying the entire post. In the Edit Post Form builder, you can switch to expert mode to expose the shortcodes for the Form content. You can delete irrelevant inputs and markup in the Form, and include only the title field or only the images fields, and the submit button. You should also include the form_messages field in every Form, since it will display any errors that may occur when submitting the Form.

Place these two Edit Post Forms in separate Content Templates. Then when you insert Edit Post Links in your page, post, or template, you can choose which Form you want to display by selecting the appropriate template. The generated link URL will vary based on the selected template, showing different Forms at each URL.

#2003923

My issue is resolved now. Thank you!