Front-end Submission #

Workflow submissions can also be triggered for entries created through the front-end. You'll need to adjust your templates to include a special tag that tells Workflow to check the incoming entry and send it as a submission to be approved.

<form method="post" accept-charset="UTF-8">
    <input type="hidden" name="action" value="entries/save-entry">
    <input type="hidden" name="sectionId" value="1">
    <input type="hidden" name="typeId" value="2">
    {{ redirectInput('viewentry/{slug}') }}
    {{ csrfInput() }}

    {# Add our 'hook' for the entry to be submitted for review #}
    <input type="hidden" name="workflow-action" value="save-submission">

    {# Optionally, include some notes #}
    <input type="hidden" name="editorNotes" value="This is an amazing post">

    {# Enter your entry fields as normal... #}
    <input type="text" name="title" value="Some Title">
    <input type="text" name="fields[requiredField]" value="Some Text">

    <input type="submit" value="Submit">

When triggered by a user that's a Editor, this entry will be created in your section (as disabled), a new draft will be created, and automatically submitted for review by the Publisher. If notifications are setup, publishers will receive a notification to action this submission.

There are also a number of other values you can give your workflow-action input, to do various tasks, should you like to build out more front-end functionality.

revoke-submissionFor an editor to revoke their submission, only once submitted.
approve-submissionFor a publisher to approve and publish a submission.
reject-submissionFor a publisher to reject a submission.

For publishers, you can optionally include a notes field in your form submission:

<input type="hidden" name="publisherNotes" value="I agree, this post is amazing">

Get started with Workflow

Available for Craft 3. Get it from the plugin store.