Skip Navigation

[Resolved] When using user front-end post forms, can you show a preview of the of the page?

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/Karachi (GMT+05:00)

Author
Posts
#2632743

Tell us what you are trying to do?

We are using Toolset created post forms for a front-end user to add a listing to the website. Of course it gets saved on the back-end as pending review so that someone from staff can actually publish it. Client wants users to be able to click on a button to preview the post using all the form data they just entered prior to submitting it. How can this be accomplished?

#2632925
access-edit-own-screen.png

Hi,

Thank you for contacting us and I'd be happy to assist.

There is no straightforward feature that can be used to preview the 'pending review' posts. But here is a workaround that you can adopt.

1. In your form's settings, you can change the created post's status from 'Pending Review' to 'Draft'.

2. In your Access Control settings, you can allow your user's role to 'Edit own' capability.
( example screenshot attached )

This way they'll not be able to publish their posts but would still be able to preview them in the draft state.

I hope this helps and please let me know if you need further assistance.

regards,
Waqar

#2632971

We've hidden the admin toolbar and don't want the user filling out the form to see the back-end of the website. If there a link that could be used in a button to see this preview?

Would we need another form button for them to actually submit the form for notation to our review staff to review the listing and approve/publish it?

#2634315

Thanks for writing back.

> We've hidden the admin toolbar and don't want the user filling out the form to see the back-end of the website. If there a link that could be used in a button to see this preview?

- You can create a post view that shows all the posts from the current user as the author, with the post status set to 'draft'.

Inside this view will be the link to the post, which the user can use to open the preview page.

> Would we need another form button for them to actually submit the form for notation to our review staff to review the listing and approve/publish it?

- Yes, you can make two forms:

a). First form will have all the fields that you need from the user to fill and will create the post in the 'Draft' state.

b). A second form will only need a submit button, that will change the post status to 'Pending Review' on submission.

#2634509

Thank you! We are getting there. I was able to create the view of draft posts for the author logged in, and have that to show up on the Submission page. They can click on it and see the preview we were wanting to see, so thank you!

Next question, I don't understand how we get them back to make edits to this draft and also how we allow them to submit for Pending Review status. Can you please explain that in more detail.

New threads created by Waqar and linked to this one are listed below:

https://toolset.com/forums/topic/split-using-edit-form-for-the-draft-posts/

#2634697

Thanks for the update and glad that we're making progress.

I've created a separate ticket for your new question about the editing form for these draft posts and will follow up on it shortly.
( ref: https://toolset.com/forums/topic/split-using-edit-form-for-the-draft-posts/ )

You're welcome to mark this ticket as resolved and start a new one for each new question or concern.