Skip Navigation

[Resolved] Split: Save post as draft first. then preview it. then publish it

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.

Our next available supporter will start replying to tickets in about 7.04 hours from now. Thank you for your understanding.

This topic contains 2 replies, has 2 voices.

Last updated by michaelR-26 4 months, 3 weeks ago.

Assigned support staff: Christian Cox.

Author
Posts
#1709235

I tried this but am having a tough time.

I already had an edit post form, so I set it Draft after posting and then show the post.

Then I made the new edit form with your instructions, my new form has this code

[credform]
[cred_field field='form_messages' class='alert alert-warning']

[cred_field field='form_submit' output='bootstrap' value='Submit' class='btn btn-primary btn-lg']
[/credform]

I took this form code and inserted into the bottom of my Custom Post Template. I tried to add this conditional around the form block.

Post Source is Current Post
Source is Post Status
Then I set to = static value and entered Draft in the box.

I save the Custom Post tempate and try to Edit the post, which works fine. But the new button to submit for review does not show on the post page where I placed it.

What could I be doing wrong. I really need to be able to preview the post prior to submit.

Thank you in advance.

#1709255

Christian Cox
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Hello, I think the proper capitalization in your conditional static value should be "draft" with a lowercase "d". If this doesn't solve the problem, please enable debug mode for the conditional. In the Block Editor there is a toggle switch in the conditional block configurations (see the screenshot here). Then visit the front-end of the site and take a screenshot of the output, or copy + paste it here in your next reply. I'll review that and give you some feedback.

#1710735

My issue is resolved now. I had used the Short Codes in a Fields and Views block which was wrong. I instead inserted the form block and that worked perfectly!