Answers.Body: <p>I got it to work by adding the below at line 182 of GuestEntriesController.php</p>
  
  <pre><code>        $entry-&gt;id = craft()-&gt;request-&gt;getPost('entryId');
  </code></pre>
  
  <p>Then I added a hidden field with the current entries id in the template.</p>
  
  <pre><code>&lt;input type="hidden" name="entryId" value="{{ entry.id }}"&gt;
  </code></pre>
  
  <p>I don't know if this is the best way to do it but it seems to be working. If this is going to cause issuees or there is a better way to do it let me know and I will swap my fix out with yours. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-07T14:15:25.280Z
Answers.LastActivityDate: 2016-07-07T14:15:25.280Z
Answers.UserDisplayName: CongdonJL
Body: <p>I am using the GuestEntries (<a href="https://github.com/pixelandtonic/GuestEntries" rel="nofollow">https://github.com/pixelandtonic/GuestEntries</a>) Plugin to try to allow guests to update entries. I have it working to where a guest can come to the page and fill out the form but unfortunately it is creating a new entry rather than editing the existing one. </p>
  
Tags: <guest-entries><plugin-guestentries>
Title: Guest Entries creating new entry instead of editing the current one
ThreadText: # Guest Entries creating new entry instead of editing the current one
  
  (Asked by: username_0 on 2016-07-07)
  
  I am using the GuestEntries (<https://github.com/pixelandtonic/GuestEntries>) Plugin to try to allow guests to update entries. I have it working to where a guest can come to the page and fill out the form but unfortunately it is creating a new entry rather than editing the existing one.
  
  **Tags:** guest-entries, plugin-guestentries
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-07-07. Score: 3
  
  I got it to work by adding the below at line 182 of GuestEntriesController.php
  
  ```
          $entry->id = craft()->request->getPost('entryId');
  
  ```
  
  Then I added a hidden field with the current entries id in the template.
  
  ```
  <input type="hidden" name="entryId" value="{{ entry.id }}">
  
  ```
  
  I don't know if this is the best way to do it but it seems to be working. If this is going to cause issuees or there is a better way to do it let me know and I will swap my fix out with yours.
  
  
  ---
  
  