Answers.Body: <p>The parameter is called <code>siteId</code></p>
  
  <pre class="lang-TWIG prettyprint-override"><code>&lt;input type="hidden" name="siteId" value="{{ currentSite.id }}"&gt;
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-19T16:30:44.643Z
Answers.LastActivityDate: 2019-03-19T16:30:44.643Z
Answers.UserDisplayName: Robin Schambach
Body: <p>I have a multi site setup and a front facing entry form, which saves entries always to the same site (and not the current one which is weird). </p>
  
  <p>Is there a way to define to which site the current entry should be saved? Something in the lines of:</p>
  
  <pre><code>{{ csrfInput() }}
  &lt;input type="hidden" name="action" value="entries/save-entry"&gt;
  &lt;input type="hidden" name="sectionId" value="1"&gt;
  &lt;input type="hidden" name="site" value="{{ currentSite.id }}"
  </code></pre>
  
Tags: <multi-site><entry-form>
Title: How to save entry to the current site from the front end?
ThreadText: # How to save entry to the current site from the front end?
  
  (Asked by: username_0 on 2019-03-19)
  
  I have a multi site setup and a front facing entry form, which saves entries always to the same site (and not the current one which is weird).
  
  Is there a way to define to which site the current entry should be saved? Something in the lines of:
  
  ```
  {{ csrfInput() }}
  <input type="hidden" name="action" value="entries/save-entry">
  <input type="hidden" name="sectionId" value="1">
  <input type="hidden" name="site" value="{{ currentSite.id }}"
  
  ```
  
  **Tags:** multi-site, entry-form
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-03-19. Score: 4 | Accepted answer
  
  The parameter is called `siteId`
  
  ```TWIG
  <input type="hidden" name="siteId" value="{{ currentSite.id }}">
  
  ```
  
  
  ---
  
  