Answers.Body: <p>Eventually I just edited customerDetails.html and swapped out the select with a hidden field. Done.    </p>
  
  <pre><code>{{ forms.hidden({
      name: 'createAccount',
      id: 'createAccount',
      value: 'yes'
  }) }}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-11T23:31:05.797Z
Answers.LastActivityDate: 2017-12-11T23:31:05.797Z
Answers.UserDisplayName: Charlie Triplett
Body: <p>I'm adding a basic annual subscription to a portion of a website.</p>
  
  <p>I have Registration Behaviour set to
  Always - creates an account for all guest payments</p>
  
  <p>But on the subscription form the createAccount select still appears (Save my account, No don't create an account".</p>
  
  <p>I'm including the customerDetails fields like this:</p>
  
  <pre><code>{% include 'charge/_includes/inputs/customerDetails' with { 'registerGuest' : true }%}
  </code></pre>
  
  <p>I see the form logic in customerDetails.html but that doesn't feel like something that should be edited.</p>
  
  <p>I want to remove the select, since I should always be creating a new account by default OR I want to replace it with a hidden field.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-12-11T04:53:47.890Z
Comments.Text: What's wrong with editing the html?
Comments.UserDisplayName: Robin Schambach
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-12-11T23:29:45.790Z
Comments.Text: @RobinSchambach That's the solution I landed on.
Comments.UserDisplayName: Charlie Triplett
Tags: <plugin-charge>
Title: How to hide createAccount select by default • Charge 2 Plugin
ThreadText: # How to hide createAccount select by default • Charge 2 Plugin
  
  (Asked by: username_0 on 2017-12-10)
  
  I'm adding a basic annual subscription to a portion of a website.
  
  I have Registration Behaviour set to
  Always - creates an account for all guest payments
  
  But on the subscription form the createAccount select still appears (Save my account, No don't create an account".
  
  I'm including the customerDetails fields like this:
  
  ```
  {% include 'charge/_includes/inputs/customerDetails' with { 'registerGuest' : true }%}
  
  ```
  
  I see the form logic in customerDetails.html but that doesn't feel like something that should be edited.
  
  I want to remove the select, since I should always be creating a new account by default OR I want to replace it with a hidden field.
  
  **Tags:** plugin-charge
  
  > **Comments:**
  > **username_1**: What's wrong with editing the html?  
  > **username_0**: @username_1 That's the solution I landed on.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-12-11. Score: 2
  
  Eventually I just edited customerDetails.html and swapped out the select with a hidden field. Done.
  
  ```
  {{ forms.hidden({
      name: 'createAccount',
      id: 'createAccount',
      value: 'yes'
  }) }}
  
  ```
  
  
  ---
  
  