Answers.Body: <p>I believe you're looking for <code>entryRevisions/publishDraft</code>:</p>
  
  <pre><code>&lt;input type="hidden" name="action" value="entryRevisions/publishDraft"&gt;
  </code></pre>
  
  <p>You can see the specific inputs it is looking for here: <a href="https://github.com/craftcms/cms/tree/master-v2/src/controllers/EntryRevisionsController.php#L188" rel="nofollow noreferrer">https://github.com/craftcms/cms/tree/master-v2/src/controllers/EntryRevisionsController.php#L188</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-17T07:32:38.087Z
Answers.Text: Hi Brad, thanks for your support. As I have two buttons in the form "save as draft" and "publish" I want the user to click either or. So either the forms content is being saved as draft or it is being published.
Answers.UserDisplayName: user5991
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-17T07:51:01.260Z
Answers.Text: Maybe something similar than this: `<input type="submit" action="entryRevisions/saveDraft" value="Save as draft">
      <input type="submit" action="entryRevisions/entries/saveEntry" value="Publish">`. Unfortunately this is not working. Any idea how to make it work?
Answers.UserDisplayName: user5991
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-16T19:44:12.067Z
Answers.LastActivityDate: 2018-02-21T23:43:58.117Z
Answers.LastEditDate: 2018-02-21T23:43:58.117Z
Answers.UserDisplayName: Brad Bell
Body: <p>in my frontend entry form I have a "save as draft" submit button.
  The current action for this form is the following, which saves the entry submitted through the form as a draft (status: disabled):</p>
  
  <pre><code>&lt;input type="hidden" name="action" value="entryRevisions/saveDraft"&gt;
  </code></pre>
  
  <p>Next to the "save as draft" button I would like to have a "publish" button. If the user clicks on it the entry should be submitted as "status: live". If the user clicks on "save as draft" it should be submitted as "status: disabled". Any idea how to do this?</p>
  
Tags: <templating><form><entry><frontend><entry-form>
Title: frontend form action: save as draft or publish
ThreadText: # frontend form action: save as draft or publish
  
  (Asked by: username_0 on 2016-12-16)
  
  in my frontend entry form I have a "save as draft" submit button.
  The current action for this form is the following, which saves the entry submitted through the form as a draft (status: disabled):
  
  ```
  <input type="hidden" name="action" value="entryRevisions/saveDraft">
  
  ```
  
  Next to the "save as draft" button I would like to have a "publish" button. If the user clicks on it the entry should be submitted as "status: live". If the user clicks on "save as draft" it should be submitted as "status: disabled". Any idea how to do this?
  
  **Tags:** templating, form, entry, frontend, entry-form
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-12-16. Score: 1
  
  I believe you're looking for `entryRevisions/publishDraft`:
  
  ```
  <input type="hidden" name="action" value="entryRevisions/publishDraft">
  
  ```
  
  You can see the specific inputs it is looking for here: <https://github.com/craftcms/cms/tree/master-v2/src/controllers/EntryRevisionsController.php#L188>
  
  > **Comments:**
  > **username_0**: Hi username_1, thanks for your support. As I have two buttons in the form "save as draft" and "publish" I want the user to click either or. So either the forms content is being saved as draft or it is being published.  
  > **username_0**: Maybe something similar than this: `<input type="submit" action="entryRevisions/saveDraft" value="Save as draft">     <input type="submit" action="entryRevisions/entries/saveEntry" value="Publish">`. Unfortunately this is not working. Any idea how to make it work?  
  
  ---
  
  