# Mandatory custom user field shows no error hint when omitted on signup

**URL:** https://meta.discourse.org/t/mandatory-custom-user-field-shows-no-error-hint-when-omitted-on-signup/370279
**Category:** Bug
**Tags:** user-custom-fields, signup
**Created:** [June 15, 2025, 6:27pm UTC](https://meta.discourse.org/t/mandatory-custom-user-field-shows-no-error-hint-when-omitted-on-signup/370279 "2025-06-15T18:27:19Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![fhe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fhe/32/113345_2.png) [@fhe](https://meta.discourse.org/u/fhe)
#### Post date: [June 15, 2025, 6:27pm UTC](https://meta.discourse.org/t/mandatory-custom-user-field-shows-no-error-hint-when-omitted-on-signup/370279/1 "2025-06-15T18:27:19Z")

</div>

I’m using a custom user field of type multiselect that’s set to be required for all users. This implies, that it’s also mandatory on signup, i.e., you can’t signup without selecting at least one option from the list.

Instead of showing an error hint, like it’s done for standard fields, the custom user field shows no message if omitted. Signup just does nothing without any feedback to the user.

Furthermore, and I don’t know if this is related, the developer console shows

```plaintext
head_tag_1.js:2 Uncaught ReferenceError: $ is not defined
    at head_tag_1.js:2:1

```

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 16, 2025, 11:39pm UTC](https://meta.discourse.org/t/mandatory-custom-user-field-shows-no-error-hint-when-omitted-on-signup/370279/2 "2025-06-16T23:39:29Z")

</div>

> [@fhe](#):
>
> `$ is not defined`

Do you have any custom themes or components installed? Are you running latest?

---

<div class="post-metadata">

### Author: ![fhe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fhe/32/113345_2.png) [@fhe](https://meta.discourse.org/u/fhe)
#### Post date: [June 17, 2025, 4:37am UTC](https://meta.discourse.org/t/mandatory-custom-user-field-shows-no-error-hint-when-omitted-on-signup/370279/4 "2025-06-17T04:37:12Z")

</div>

> [@fhe](#):
>
> `$ is not defined`

> [@sam](#):
>
> Do you have any custom themes or components installed?

I had the snippet of JS referenced in [Don't Link User Title to a Group](https://meta.discourse.org/t/dont-link-user-title-to-a-group/58267) in the custom code `<head>` theme settings. Unfortunately, I don’t remember if or why I’ve added it in the first place.

Once removed, the error on the console disappears.

> [@sam](#):
>
> Are you running latest?

Yes, I’ve just updated to latest latest and also don’t see the error hint for the custom user field there.

---

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [June 17, 2025, 4:55am UTC](https://meta.discourse.org/t/mandatory-custom-user-field-shows-no-error-hint-when-omitted-on-signup/370279/7 "2025-06-17T04:55:06Z")

</div>

> [@fhe](#):
>
> Once removed, the error on the console disappears.

Can you confirm that you are all set now and the issue has been isolated to some very old, custom code you had in your theme that you’ve now removed? I just want to make absolutely sure there’s not more that needs to be investigated.

---

<div class="post-metadata">

### Author: ![fhe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fhe/32/113345_2.png) [@fhe](https://meta.discourse.org/u/fhe)
#### Post date: [June 17, 2025, 5:31am UTC](https://meta.discourse.org/t/mandatory-custom-user-field-shows-no-error-hint-when-omitted-on-signup/370279/8 "2025-06-17T05:31:27Z")

</div>

> [@tshenry](#):
>
> Can you confirm that you are all set now and the issue has been isolated to some very old, custom code you had in your theme that you’ve now removed?

No, only the error message I’ve referenced in the last paragraph of my OT is gone now. It was unrelated to the issue I’ve posted above which still holds (but might be a #Contribute > UX issue now)

This is what’s still unresolved:

> [@fhe](#):
>
> I’m using a custom user field of type multiselect that’s set to be required for all users. This implies, that it’s also mandatory on signup, i.e., you can’t signup without selecting at least one option from the list.
> 
> Instead of showing an error hint, like it’s done for standard fields, the custom user field shows no message if omitted. Signup just does nothing without any feedback to the user.

---

<div class="post-metadata">

### Author: ![phill](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/phill/32/498896_2.png) [@phill](https://meta.discourse.org/u/phill)
#### Post date: [June 18, 2025, 4:59am UTC](https://meta.discourse.org/t/mandatory-custom-user-field-shows-no-error-hint-when-omitted-on-signup/370279/15 "2025-06-18T04:59:34Z")

</div>

> [@fhe](#):
>
> Instead of showing an error hint, like it’s done for standard fields, the custom user field shows no message if omitted. Signup just does nothing without any feedback to the user.

We have reproduced this issue and are our team our now investigating.

Thank you for bringing this to our attention!
