<p><strong>Edited based on comment below</strong></p>

<p>No sorry I see what you mean now. But I think with entry drafts you need to have first published an entry, then you create a draft from that entry, essentially creating two versions of the same one.</p>

<p>I think for approving entries as comments this is going to lead to a lot of complexity and you might struggle to get the results you want, and to do this the way you want would probably require writing your own plugin...</p>

<p>This plugin would listen to when an entry is saved, get that new entry id, create a new <a href="http://buildwithcraft.com/classreference/models/EntryDraftModel" rel="nofollow noreferrer"><code>EntryDraftModel</code></a> and then save it via <code>craft()-&gt;entryRevisions-&gt;saveDraft()</code> method. You would then need to set your new entry to <code>disabled</code> anyway (to stop it from showing) as creating a draft won't affect the newly created entry.</p>

<p>Then to approve an entry you would go into the newly created entry, switch to the draft (which would most likely be the same) and then apply it and enable the entry.</p>

<p>This is a complex process when your entire workflow could be condensed to:</p>

<ol>
<li>Create a new entry as disabled</li>
<li>Enable an entry to approve it</li>
</ol>

<p>Setting all new entries to disabled and then setting ones to active you want to approve will make your life easier and keep your build streamlined.</p>

<p>I don't think there is extensive info about drafts in particular but it might be worth checking the <a href="http://buildwithcraft.com/docs/sections-and-entries" rel="nofollow noreferrer">docs</a> but essentially they are intended for entry revisions, not so much approving whole entries.</p>

<p>So...you can set entries to be disabled when they are submitted from within the guest entries plugin itself:</p>

<p><img src="https://i.sstatic.net/pZ1cF.jpg" alt="enter image description here"></p>

<p>Just make sure the light switch is off for the correct section and entries wont be published. Then you will be able to set them to enabled as part of your approval process. </p>

<p><strong>Doing this with a standard entry form</strong></p>

<p>If you wanted to do this using crafts native entry form (with a logged in user), you would need to set the status at a template level</p>

<pre><code>// entry form ...
&lt;input type="hidden" name="enabled" value="0"&gt;
</code></pre>

<p>But a quick test revealed this <strong>didn't have any effect</strong> when using the guest entries plugin.</p>

CC BY-SA 3.0
2015-07-18T18:57:21.387Z
Is disabled and Draft really the same?
MISC
CC BY-SA 3.0
2015-07-18T20:27:46.167Z
A disabled entry seems to be in the entries table with a postDate value of NULL while a draft entry seems to be in the table entrydrafts.
MISC
CC BY-SA 3.0
2015-07-18T20:34:49.587Z
I've updated my answer to give a bit more information, hope it helps!
Alec Ritson
CC BY-SA 3.0
2015-07-18T12:07:29.077Z
2015-07-18T20:34:15.860Z
2015-07-18T20:34:15.860Z
Alec Ritson
<p>We're using Guest Entries for comments. When the user posts an entry it automatically appears as a published entry. I'd like to change this functionality so that the entry will enter as a draft until approved.</p>

<p>I've set the user's permissions to "edit entry" but that doesn't seem to do the trick.</p>

<p>Any help would be appreciated.</p>

<entries><guest-entries><permissions><plugin-guestentries>
Guest Entries - Saving entries as drafts
# Guest Entries - Saving entries as drafts

(Asked by: username_0 on 2015-07-17)

We're using Guest Entries for comments. When the user posts an entry it automatically appears as a published entry. I'd like to change this functionality so that the entry will enter as a draft until approved.

I've set the user's permissions to "edit entry" but that doesn't seem to do the trick.

Any help would be appreciated.

**Tags:** entries, guest-entries, permissions, plugin-guestentries


---

## 1 answers

### Answer by username_1 on 2015-07-18. Score: 3 | Accepted answer

Edited based on comment below
No sorry I see what you mean now. But I think with entry drafts you need to have first published an entry, then you create a draft from that entry, essentially creating two versions of the same one.
I think for approving entries as comments this is going to lead to a lot of complexity and you might struggle to get the results you want, and to do this the way you want would probably require writing your own plugin...
This plugin would listen to when an entry is saved, get that new entry id, create a new EntryDraftModel and then save it via craft()->entryRevisions->saveDraft() method. You would then need to set your new entry to disabled anyway (to stop it from showing) as creating a draft won't affect the newly created entry.
Then to approve an entry you would go into the newly created entry, switch to the draft (which would most likely be the same) and then apply it and enable the entry.
This is a complex process when your entire workflow could be condensed to:

Create a new entry as disabled
Enable an entry to approve it

Setting all new entries to disabled and then setting ones to active you want to approve will make your life easier and keep your build streamlined.
I don't think there is extensive info about drafts in particular but it might be worth checking the docs but essentially they are intended for entry revisions, not so much approving whole entries.
So...you can set entries to be disabled when they are submitted from within the guest entries plugin itself:

Just make sure the light switch is off for the correct section and entries wont be published. Then you will be able to set them to enabled as part of your approval process. 
Doing this with a standard entry form
If you wanted to do this using crafts native entry form (with a logged in user), you would need to set the status at a template level
// entry form ...


But a quick test revealed this didn't have any effect when using the guest entries plugin.

> **Comments:**
> **username_2**: Is disabled and Draft really the same?  
> **username_2**: A disabled entry seems to be in the entries table with a postDate value of NULL while a draft entry seems to be in the table entrydrafts.  
> **username_1**: I've updated my answer to give a bit more information, hope it helps!  

---

