# 为账户创建页面添加另一个用于隐藏/显示字段的属性

**URL:** <https://meta.discourse.org/t/add-yet-another-property-to-hide-show-the-field-on-the-account-creation-page/214862>\
**Category:** Feature\
**Tags:** user-custom-fields\
**Created:** [2022年一月14日 14:57 UTC](https://meta.discourse.org/t/add-yet-another-property-to-hide-show-the-field-on-the-account-creation-page/214862 "2022-01-14T14:57:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2022年一月14日 14:57 UTC](https://meta.discourse.org/t/add-yet-another-property-to-hide-show-the-field-on-the-account-creation-page/214862/1 "2022-01-14T14:57:34Z")

</div>

继续讨论 [自定义用户字段在注册页面上可见](https://meta.discourse.org/t/custom-user-field-is-visible-on-signup-page/214843)：

创建自定义用户字段时，唯一不让它显示在帐户创建页面上的方法是使用 CSS 隐藏它。  
这个问题出现的频率很高。我认为是时候为显示/隐藏帐户创建页面上的字段添加另一个属性了。几年前 CSS “修复”似乎还可以，但现在看来太难了。

---

<div class="post-metadata">

**Author:** ![Krischan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/krischan/32/47290_2.png) [@Krischan](https://meta.discourse.org/u/Krischan)\
**Post date:** [2022年一月14日 15:18 UTC](https://meta.discourse.org/t/add-yet-another-property-to-hide-show-the-field-on-the-account-creation-page/214862/2 "2022-01-14T15:18:30Z")

</div>

我完全同意。拥有用于“元数据”的自定义用户字段非常棒，而使用 CSS 隐藏它们则很麻烦。

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2022年十二月18日 20:34 UTC](https://meta.discourse.org/t/add-yet-another-property-to-hide-show-the-field-on-the-account-creation-page/214862/3 "2022-12-18T20:34:38Z")

</div>

已关闭，原因同 [Site setting to hide custom user fields from signup page](https://meta.discourse.org/t/site-setting-to-hide-custom-user-fields-from-signup-page/130990)
