<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>

CC BY-SA 3.0
2017-12-11T23:31:05.797Z
2017-12-11T23:31:05.797Z
Charlie Triplett
<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>

CC BY-SA 3.0
2017-12-11T04:53:47.890Z
What's wrong with editing the html?
Robin Schambach
CC BY-SA 3.0
2017-12-11T23:29:45.790Z
@RobinSchambach That's the solution I landed on.
Charlie Triplett
<plugin-charge>
How to hide createAccount select by default • Charge 2 Plugin
# 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**: @RobinSchambach 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'
}) }}


---

