# Discourse Authentication Validations

**URL:** <https://meta.discourse.org/t/discourse-authentication-validations/292547>\
**Category:** Plugin\
**Tags:** experimental\
**Created:** [January 22, 2024, 7:32pm UTC](https://meta.discourse.org/t/discourse-authentication-validations/292547 "2024-01-22T19:32:52Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [May 22, 2025, 1:34pm UTC](https://meta.discourse.org/t/discourse-authentication-validations/292547/11 "2025-05-22T13:34:15Z")

</div>

It is currently impossible to have an optional required field.

I have a field “Industry” and whenever “Other” is being selected, it unhides the “Other Industry” field.

But when I make the “Other Industry” field required, I am unable to submit the form when that field is hidden.

When I manually unhide the `div` you can see that it is requiring this input, even though the form is hidden.

When I select “Other”, fill in a value, and then select another industry so the input becomes hidden again, I can submit the form. And then also the same situation happens as @kravitsjacob pointed out: the value of the “Other Industry” field is saved to the users profile, even though “Industry” is not set to “Other”.

User Admin:

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/0/9/d09680f44e133c49cf2dfbd0765d37d1147c2e85.png)

---

_[View the full topic](https://meta.discourse.org/t/discourse-authentication-validations/292547)._
