# הסתר את שדה השם המלא בטופס יצירת חשבון

**URL:** https://meta.discourse.org/t/hide-the-full-name-field-in-the-create-account-form/232207
**Category:** Development
**Created:** [7 ביולי,‏ 2022,‏ 2:05pm UTC](https://meta.discourse.org/t/hide-the-full-name-field-in-the-create-account-form/232207 "2022-07-07T14:05:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![saurabhmasc](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@saurabhmasc](https://meta.discourse.org/u/saurabhmasc)
#### Post date: [7 ביולי,‏ 2022,‏ 2:05pm UTC](https://meta.discourse.org/t/hide-the-full-name-field-in-the-create-account-form/232207/1 "2022-07-07T14:05:55Z")

</div>

Hi team,

We have customized the regular Discourse create account form using a grid layout as shown below:

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/d/3/ed36c18d40a2a48cd93e5c675bfbd86402f564f3.png)

Currently, we have hidden the full name using the below SCSS:

```plaintext
.d-modal.create-account .login-form {
   form{
        .input-group:nth-child(3)
            display:none !important;
        }
   }
}

```

We hide full name fields using nth-child selector as there is no unique class for the below mention `input-group` div:

> <https://github.com/discourse/discourse/blob/2e4056d18532435e6e68d79cceca5b8b280c6948/app/assets/javascripts/discourse/app/templates/modal/create-account.hbs#L44>

But now we have enabled the Google Oauth2 login on which the full name field is at the 4th position. So current CSS breaks the Create account for the Auth provider create account form as shown below:

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/5/0/450f1a5865cc170db79f8dcc8bc5162d5cb795fe.png)

How I can identify whether the current form is a Regular create account form or Auth provider (such as google oauth2) form using CSS? So I can apply CSS for the fields accordingly.

Similar issue for the Password field.

Thanks,  
Saurabh

---

<div class="post-metadata">

### Author: ![mayfield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mayfield/32/261896_2.png) [@mayfield](https://meta.discourse.org/u/mayfield)
#### Post date: [7 ביולי,‏ 2022,‏ 3:39pm UTC](https://meta.discourse.org/t/hide-the-full-name-field-in-the-create-account-form/232207/2 "2022-07-07T15:39:12Z")

</div>

The CSS [`:has` selector](https://css-tricks.com/the-css-has-selector/) may work for your use case:

```plaintext
.input-group:has(#new-account-name) { ... }

```

---

<div class="post-metadata">

### Author: ![saurabhmasc](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@saurabhmasc](https://meta.discourse.org/u/saurabhmasc)
#### Post date: [8 ביולי,‏ 2022,‏ 7:27am UTC](https://meta.discourse.org/t/hide-the-full-name-field-in-the-create-account-form/232207/3 "2022-07-08T07:27:17Z")

</div>

Thanks for the reply,  
But `:has` selector is not working.

---

<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: [13 ביולי,‏ 2022,‏ 10:52am UTC](https://meta.discourse.org/t/hide-the-full-name-field-in-the-create-account-form/232207/9 "2022-07-13T10:52:11Z")

</div>

There has been a little back and forth over PM about this one, but it has resulted in classes being added to the create-account modal. 🥳 🎈

[https://github.com/discourse/discourse/pull/17435](https://github.com/discourse/discourse/pull/17435)
