Answers.Body: <p>I was able to find a solution. It's probably not the best way to go, but it works. </p>
  
  <p>In the form add a new action: <code>&lt;input type="hidden" name="action" value="freeform/submissions/save"&gt;</code> which will override the standard action. It's the same form action Freeform uses to save entries in the CP. </p>
  
  <p>Then add the <code>id</code> you want to update as <code>value=</code>. 
  For example:
  <code>&lt;input type="hidden" name="submissionId" value="{{submission.id}}" /&gt;</code></p>
  
  <p>One disadvantage is, is that this POST does not support the handle, values,.. <code>input</code> data for the fields - you need to use the fields <code>id</code>. <br />So <br />
  <code>&lt;input name="{{ firstName.handle }}" value="{{ firstName.value }}" &gt;</code> <br />
  becomes <br />
  <code>&lt;input name="field_1" value="{{submission.FirstName}}" /&gt;</code> <br /></p>
  
  <p>You can find the field <code>id</code> in the CP. Some fields might need a bit more info, like email is <code>field_3[]</code>. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-23T04:09:12.117Z
Answers.Text: This is not works with current freeform pro for anonymous user. Any other solution?
Answers.UserDisplayName: Mufi - Amici Infotech
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-23T14:41:44.950Z
Answers.LastActivityDate: 2017-03-23T14:41:44.950Z
Answers.UserDisplayName: Lucas
Answers.Body: <p>If you want to edit a form in the front-end then you can do so by adding the following hidden inputs inside the form.</p>
  <pre><code>&lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;freeform/submissions/save&quot;&gt;
  &lt;input type=&quot;hidden&quot; name=&quot;submissionId&quot; value=&quot;{{ submission.id }}&quot;&gt;
  &lt;input type=&quot;hidden&quot; name=&quot;statusId&quot; value=&quot;{{ submission.statusId }}&quot;&gt;
  </code></pre>
  <p>The controller we are reaching with this action requires you to post the submissionId and the statusId of the form.</p>
  <p>To update a certain field of the form you have to give it the handle as name of the input like below:</p>
  <pre><code>&lt;input type=&quot;text&quot; name=&quot;{{ field.handle }}&quot; value=&quot;new value&quot;&gt;
  </code></pre>
  <p>One thing to keep in mind is that you will <strong>ALWAYS</strong> have to post all the fields with the request. If you don't then only the sent field will be filled in and the rest will get reset.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-02-04T14:24:53.373Z
Answers.LastActivityDate: 2022-02-04T14:24:53.373Z
Answers.UserDisplayName: Jay V
Body: <p>I was wondering if it is possible to have users update their own entry on the front end with the <a href="https://solspace.com/craft/freeform" rel="nofollow noreferrer">Solspace Freeform</a> plugin. </p>
  
  <p>I get as far as getting all the necessary data of the user (<code>freeform.submission</code>) in a form (<code>freeform.form</code>) and I have added an <code>input</code> with the <code>id</code> of the entry to the form:<br /> 
  <code>&lt;input type="hidden" name="id" value="{{submission.id}}" /&gt;</code></p>
  
  <p>When submitting this form it will save the data, but as a new entry instead of updating the existing one. So is there a way to update the existing <code>id</code>, similar as to what is happening in the cp?</p>
  
  <p>Thanks!</p>
  
Tags: <plugin-freeform><solspace>
Title: Q: Freeform - have users update form on the frontend
ThreadText: # Q: Freeform - have users update form on the frontend
  
  (Asked by: username_0 on 2017-03-21)
  
  I was wondering if it is possible to have users update their own entry on the front end with the [Solspace Freeform](https://solspace.com/craft/freeform) plugin.
  
  I get as far as getting all the necessary data of the user (`freeform.submission`) in a form (`freeform.form`) and I have added an `input` with the `id` of the entry to the form:  
  `<input type="hidden" name="id" value="{{submission.id}}" />`
  
  When submitting this form it will save the data, but as a new entry instead of updating the existing one. So is there a way to update the existing `id`, similar as to what is happening in the cp?
  
  Thanks!
  
  **Tags:** plugin-freeform, solspace
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2017-03-23. Score: 2
  
  I was able to find a solution. It's probably not the best way to go, but it works.
  
  In the form add a new action: `<input type="hidden" name="action" value="freeform/submissions/save">` which will override the standard action. It's the same form action Freeform uses to save entries in the CP.
  
  Then add the `id` you want to update as `value=`.
  For example:
  `<input type="hidden" name="submissionId" value="{{submission.id}}" />`
  
  One disadvantage is, is that this POST does not support the handle, values,.. `input` data for the fields - you need to use the fields `id`.   
  So   
  `<input name="{{ firstName.handle }}" value="{{ firstName.value }}" >`   
  becomes   
  `<input name="field_1" value="{{submission.FirstName}}" />`
  
  You can find the field `id` in the CP. Some fields might need a bit more info, like email is `field_3[]`.
  
  > **Comments:**
  > **username_1**: This is not works with current freeform pro for anonymous user. Any other solution?  
  
  ---
  
  ### Answer by username_2 on 2022-02-04. Score: 1
  
  If you want to edit a form in the front-end then you can do so by adding the following hidden inputs inside the form.
  
  ```
  <input type="hidden" name="action" value="freeform/submissions/save">
  <input type="hidden" name="submissionId" value="{{ submission.id }}">
  <input type="hidden" name="statusId" value="{{ submission.statusId }}">
  
  ```
  
  The controller we are reaching with this action requires you to post the submissionId and the statusId of the form.
  
  To update a certain field of the form you have to give it the handle as name of the input like below:
  
  ```
  <input type="text" name="{{ field.handle }}" value="new value">
  
  ```
  
  One thing to keep in mind is that you will **ALWAYS** have to post all the fields with the request. If you don't then only the sent field will be filled in and the rest will get reset.
  
  
  ---
  
  