An option for user field to be hidden in sign up

AI-generated summary

The discussion is about hiding user fields during sign-up. hnaseri wants an option to hide specific fields for administrative purposes, but currently, this feature doesn’t exist. zogstrip suggested hiding fields with CSS, and Johani provided code examples to demonstrate this approach. To hide all custom fields, use the following CSS:

.invites-show {
  .user-fields {
    display: none;
  }
}

For a specific field, target its class, which is the field’s name in lowercase with spaces replaced by dashes (e.g., .user-field-work-experience). Then, add the following code to the theme:

.invites-show {
  .user-field-work-experience {
    display: none;
  }
}

We want some user fields that are specific to our own administration needs. We don’t want the user to see them in sign up. However it seems there is no such option right now.

3개의 좋아요

Can’t you hide them with CSS?

I didn’t try. Does it hide a specific user field or all of them?

해당 페이지의 모든 사용자 정의 필드를 숨기고 싶다면 테마에 다음 CSS를 추가할 수 있습니다.

.invites-show {
  .user-fields {
    display: none;
  }
}

특정 필드만 숨기고 싶다면, 해당 필드에 추가되는 특정 클래스를 지정하여 표적화할 수 있습니다.

기본적으로 관리자 화면에서 설정한 필드 이름을 소문자로 변경하고, 공백은 대시로 바꾼 것입니다.

예를 들어, "Work experience"는

.user-field-work-experience

이 됩니다.

그리고 테마에 다음을 추가하여 해당 특정 필드를 숨길 수 있습니다.

.invites-show {
  .user-field-work-experience {
    display: none;
  }
}
5개의 좋아요

Site setting to hide custom user fields from signup page 항목으로 대체되어 닫힘