Custom profile fields, not show them on signup

When defining custom profile fields there is an option to have them not mandatory at signup.

image

Yet, they still show up in the signup screen. This is not desirable since

  • I want the signup screen to be as simple as possible
  • it gives the impression that the custom field needs to be filled in
  • it gives the impression that the content of the custom field is somehow related to elegibility of membership, therefore may induce hesitation to signup.

So from an ux point of view, is it possible to have an option to have it removed from signup, yet still available as a field to enter in the profile afterwards. (Like “location” and such)

2 个赞

This has come up a few times on meta, perhaps we should add a

[ ] show at signup

field here @sam?

16 个赞

You can use the (dasherized) field name now… so

.user-field-your-field-name {
  display: none;
}

I’ll double check invites, if it isn’t the same there… it should be! Yep, it’s the same on invites, you can use .user-field-your-field-name there too.

9 个赞

+1 我很希望有一个 [ ] 注册时显示 的选项。

@Kris 的自定义 CSS 方法在这里无法满足我们的需求,因为如果使用该技术,它会隐藏注册表单和个人资料中的字段。

我的用例:我们希望允许用户通过一个自由文本字段选择性地声明他们的代词(因为有些用户使用不寻常的代词来指代自己),但这样的字段会吸引那些认为“代词”是政治冒犯的人;新用户会受到启发在框中输入一些不礼貌的内容。

我们认为最好不在注册时显示该字段,而是允许活跃用户通过自定义个人资料来设置它。

2 个赞

我的 CSS 非常基础,但我认为你可以用这个来定位注册页面上的框:

.d-modal.create-account .user-field-YOUR-FIELD-NAME {
    display: none;
}

.invites-show .user-field-YOUR-FIELD-NAME {
    display: none;
}

这样你就可以在其他地方正常使用该字段了。

编辑: 如果你也使用邀请功能,我也为邀请页面添加了一些内容。:+1:

3 个赞

这里需要.d-modal吗?我不想对注册表单将来会是什么样子做任何假设。

恐怕我不知道答案。如果以后有变化,应该很容易修改。

**编辑:**我刚测试了一下,从上面的代码片段中删除它会让盒子重新出现,所以它似乎是这个特定部分正常工作所必需的。

希望有经验的人能提供帮助。:crossed_fingers:

3 个赞

Closed in favour of Site setting to hide custom user fields from signup page