An option for user field to be hidden in sign up

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 Likes

Can’t you hide them with CSS?

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

See here:

4 Likes

I’d like to see this as well, I accidentally hit the Sign Up button on our forum and was presented with a daunting list of custom user fields, not realizing our customizations had been added to the registration process! I got the CSS hack to work, but would a more elegant solution would be when creating the fields, to have the ability to hide them on signup.

5 Likes

I can’t see this post - and suspect that it contains the CSS I’m after to hide UCFs on the Accept Invitation page. Can anyone advise me on this?

If you want to hide all the custom fields on that page, you can add this CSS to your theme.

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

If you want to hide a particular field, you can target it by the specific class we add to it.

It’s basically the name of the field you set in the admin in small case. We also change spaces to dashes.

So, “Work experience” becomes

.user-field-work-experience

and you can add this to your theme to hide that particular field.

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

Thank you! That got me there.

This is what I ended up using, which keeps the Create Account and Accept Invitation consistent:

.create-account, .invites-show {
    .user-fields .user-field {
        display: none;

       &:nth-of-type(1){
            display: block;
        }
    }
}

For each additional UCF that you want to be displayed, you add another &:nth-of-type bit with another numeral; these are ordered as per the display order of the fields. Alternatively they can be specified as per @Johani’s CSS

1 Like