Skip Navigation

[Resolved] Edit form for front-end users

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

Problem:

I am trying to allow front-end users to edit their posts.

Solution:

You can follow our document to setup the form and pages.

Relevant Documentation:

https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-editing/

This support ticket is created 5 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)

This topic contains 5 replies, has 2 voices.

Last updated by Dee_DeeA2948 5 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#1187460

Tell us what you are trying to do? I am trying to allow front-end users to edit their posts.

Is there any documentation that you are following? Yes, https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-editing/

Is there a similar example that we can see? N/A

What is the link to your site? Under development

#1187462

Documentation: https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-editing/

According to step 1:
I have an existing form that I want users to be able to edit, but I need to create a brand new form specifically designed for users to edit?
So, now I’m creating a brand new form. I select “Edit existing content” instead of “create content” like my existing form.
***It doesn’t say what to add in the next phase of this new form. The arrow in the image stops at settings. What do I put in the “build form” stage?***

According to step 2:
I create a new template. I select my EDITING form to be inserted.

According to step 3: (This is the most unclear)
Insert link to the Content Template that displays the form
***What link? The form doesn’t have a link. Only web pages do.***
In the last step, you need to insert links to the Content Template that will display the form. There are two places you can insert this link into:
Content Templates for displaying single posts
Views that list items, like posts or users
***I don’t understand which link. Also, do I need to create a content template for displaying single posts? Is it the existing content template for the initial first-time submission form?
The article also mentions “views that list items, like posts or users”. I only want users to be able to edit their own posts. IF their posts are listed, like if they click on the “manage ads page”, then they can edit their own submissions.

Later on, it says:
In the dialog that appears, look under the Forms Editing section and click the Edit post link button. Is this to add to a template that’s assigned to my original submission form or my editing form?
The instructions aren’t clear and I wasn’t able to find a video showing what steps needed to be taken to allow users to edit their own posts or create a page to link the “manage ads” page.**

#1187958

Hello,

There are lots of questions in this thread, I am trying to answer them one by one.

Q1) but I need to create a brand new form specifically designed for users to edit?
Yes, you need to create a brand new form for editing post.

Q2) The arrow in the image stops at settings.
This is abnormal, in the "Settings" page, you will need to setup below options at least:
- Form type
- Post type to create/edit
- Set this post status
- After visitors submit this form
See the document you mentioned above:
https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-editing/
Screenshot:
hidden link

Q3) Insert link to the Content Template that displays the form
The content template is a feature of Views plugin, you need to install Views plugin, you can download it there:
https://toolset.com/account/downloads/
then follow above document to setup a content template for editing post:
https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-editing/#2-create-a-content-template-for-displaying-the-editing-form
Section

Q4) I don’t understand which link. Also, do I need to create a content template for displaying single posts? Is it the existing content template for the initial first-time submission form?
No, you don't need to, as I mentioned above, it is a content template for editing post, you can follow above document to setup it, it is a brand new content template

Q5) Is this to add to a template that’s assigned to my original submission form or my editing form?
The work flow works like this:
- Create a new content template "Editing post", display the Toolset form for editing post,
- In a single post content, display editing link to above content template.
- In front-end, user visits single post, click above "Edit" link, redirect him to specific URL, display the edit post form

#1188180

Thank you for your help. I'm still missing some very important information.

The article states:

3. Insert link to the Content Template that displays the form (***Which link?***)
In the last step, you need to insert links to the Content Template that will display the form. There are two places you can insert this link into:

Content Templates for displaying single posts (***Which content template do I add this to?***)
Views that list items, like posts or users
Adding an edit link to templates that display single items
When designing templates for displaying single posts, you might want to display a link to edit the post that is being viewed.

I'm really having a hard time connecting the pieces. I have created the editing form. I don't know if I should be creating a layout or template? I tried creating BOTH. Ultimately, I don't know how to link the pieces so that the flow works as expected. Thank you for your patience.

#1188714
edit-form-link.JPG

If you are using Layouts plugin, Layouts plugin will take over this job from content template, you can try these:
1) create a layout, and display the Toolset form for editing post.

2) In a single post content, insert the edit form link by these:
click the Toolset Forms button, click button "Edit post link", choose above layout of step 1)
see screenshot: edit-form-link.JPG

#1189006

My issue is resolved now. Thank you! I needed to use a layout template.