Answers.Body: <p>It is to generate an HTML input tag with type of hidden.
  This will not appear on the screen like a normal input does. 
  For more information related to input type hidden, you can refer to <a href="https://www.w3schools.com/tags/att_input_type_hidden.asp" rel="nofollow noreferrer">this</a>.</p>
  
  <p><code>enabled</code> means that the entry will be saved with its status toggle set to the “enabled” (green) position.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-03-28T18:50:59.130Z
Answers.Text: bro thanks for the answer...but what is it used for in a site?ie..what is the status toggle used for?
Answers.UserDisplayName: jamesSeb
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-01T07:13:51.443Z
Answers.Text: usually, it's used to sent some item for example : id user that you get from database.
  But in your question this input used to determine in which section your entries will be saved. for toggle status I can't say for sure, I cannot find much documentation for this toggle.
Answers.UserDisplayName: aodihis
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-03-27T07:23:14.830Z
Answers.LastActivityDate: 2020-03-28T01:36:46.357Z
Answers.LastEditDate: 2020-03-28T01:36:46.357Z
Answers.UserDisplayName: aodihis
Body: <p>What's the purpose of <code>{{ hiddenInput('enabled', '1') }}</code> in an entry form?</p>
  
  <pre><code>&lt;form method="post" accept-charset="UTF-8"&gt;
  {{ csrfInput() }}
  {{ actionInput('entries/save-entry') }}
  {{ redirectInput('viewentry/{slug}') }}
  {{ hiddenInput('sectionId', '2') }}
  {{ hiddenInput('enabled', '1') }}
  </code></pre>
  
Tags: <craft3><post>
Title: What does {{ hiddenInput('enabled', '1') }} in an entry form do?
ThreadText: # What does {{ hiddenInput('enabled', '1') }} in an entry form do?
  
  (Asked by: username_0 on 2020-03-27)
  
  What's the purpose of `{{ hiddenInput('enabled', '1') }}` in an entry form?
  
  ```
  <form method="post" accept-charset="UTF-8">
  {{ csrfInput() }}
  {{ actionInput('entries/save-entry') }}
  {{ redirectInput('viewentry/{slug}') }}
  {{ hiddenInput('sectionId', '2') }}
  {{ hiddenInput('enabled', '1') }}
  
  ```
  
  **Tags:** craft3, post
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-03-27. Score: 2 | Accepted answer
  
  It is to generate an HTML input tag with type of hidden.
  This will not appear on the screen like a normal input does.
  For more information related to input type hidden, you can refer to [this](https://www.w3schools.com/tags/att_input_type_hidden.asp).
  
  `enabled` means that the entry will be saved with its status toggle set to the “enabled” (green) position.
  
  > **Comments:**
  > **username_0**: bro thanks for the answer...but what is it used for in a site?ie..what is the status toggle used for?  
  > **username_1**: usually, it's used to sent some item for example : id user that you get from database. But in your question this input used to determine in which section your entries will be saved. for toggle status I can't say for sure, I cannot find much documentation for this toggle.  
  
  ---
  
  