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?
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
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?
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.
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.
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.