# Setting checkbox state for custom User Fields on sign up

**URL:** https://meta.discourse.org/t/setting-checkbox-state-for-custom-user-fields-on-sign-up/51619
**Category:** Feature
**Created:** [October 16, 2016, 11:20pm UTC](https://meta.discourse.org/t/setting-checkbox-state-for-custom-user-fields-on-sign-up/51619 "2016-10-16T23:20:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![samnazarko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/samnazarko/32/109010_2.png) [@samnazarko](https://meta.discourse.org/u/samnazarko)
#### Post date: [October 16, 2016, 11:20pm UTC](https://meta.discourse.org/t/setting-checkbox-state-for-custom-user-fields-on-sign-up/51619/1 "2016-10-16T23:20:51Z")

</div>

Hi

I am looking at adding some custom user fields to the signup forum on our forum. I’d like to add a checkbox, and I’d like it checked unless the user unchecks it. This is set up as a user field of type ‘Confirmation’.

I see the div is

```plaintext
<div id="ember1331" class="ember-view user-field confirm"><div class="controls">

```

I know I can use jQuery to hack something together to check it, but I think it would be a great feature to be able to configure this under Customize → User Fields.

Cheers

Sam

---

<div class="post-metadata">

### Author: ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)
#### Post date: [December 7, 2016, 4:44am UTC](https://meta.discourse.org/t/setting-checkbox-state-for-custom-user-fields-on-sign-up/51619/2 "2016-12-07T04:44:53Z")

</div>

I agree with this. A custom field checkbox to opt-out at sign-up would be preferable.

---

<div class="post-metadata">

### Author: ![samnazarko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/samnazarko/32/109010_2.png) [@samnazarko](https://meta.discourse.org/u/samnazarko)
#### Post date: [December 7, 2016, 4:56am UTC](https://meta.discourse.org/t/setting-checkbox-state-for-custom-user-fields-on-sign-up/51619/3 "2016-12-07T04:56:58Z")

</div>

Cool.

I tried with Javascript, but I’m not a web dev, and the div ID seems to change unpredictably. I’ll hack at Discourse when I get some free time to see if there’s a better way to achieve this.

I want to avoid carrying a downstream patch however

S

---

<div class="post-metadata">

### Author: ![jahan\_gagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jahan_gagan/32/501948_2.png) [@jahan\_gagan](https://meta.discourse.org/u/jahan_gagan)
#### Post date: [June 23, 2020, 7:41am UTC](https://meta.discourse.org/t/setting-checkbox-state-for-custom-user-fields-on-sign-up/51619/4 "2020-06-23T07:41:24Z")

</div>

Is there any progress on it?  
I am also facing the same problem of default unchecked custom field checkbox at user preferences.
