# How to remove red asterisks from default form on VS Code

**URL:** <https://community.hubspot.com/t/how-to-remove-red-asterisks-from-default-form-on-vs-code/77919>\
**Category:** CMS Development\
**Tags:** css, forms\
**Created:** [March 24, 2023, 9:15am UTC](https://community.hubspot.com/t/how-to-remove-red-asterisks-from-default-form-on-vs-code/77919 "2023-03-24T09:15:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CLing0](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@CLing0](https://community.hubspot.com/u/CLing0)\
**Post date:** [March 24, 2023, 9:15am UTC](https://community.hubspot.com/t/how-to-remove-red-asterisks-from-default-form-on-vs-code/77919/1 "2023-03-24T09:15:54Z")

</div>

I’m using a hubspot form on our website. I would like to remove the red asterisk on a required field from VS code. Is it possible?

I’ve tried to edit the embed code on vs code by placing css=" " and cssClass. But they don’t work. I also tried design tools, but we’re unable to modify the default module.

What else I can do to remove it on required fields?

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [March 24, 2023, 9:45am UTC](https://community.hubspot.com/t/how-to-remove-red-asterisks-from-default-form-on-vs-code/77919/2 "2023-03-24T09:45:00Z")

</div>

Hi @CLing0,

the easiest way to remove it would be to set the field as “not requiered” since it’s better for UX and accessability.

But if you want to just hide the asteriks you can put

```lia-code-sample
hs-form-required{
display:none;
}

```

to your CSS file

best,

Anton

---

<div class="post-metadata">

**Author:** ![CLing0](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@CLing0](https://community.hubspot.com/u/CLing0)\
**Post date:** [March 24, 2023, 10:42am UTC](https://community.hubspot.com/t/how-to-remove-red-asterisks-from-default-form-on-vs-code/77919/3 "2023-03-24T10:42:49Z")

</div>

Hi Anton. Thank you for quick response.

It doesn’t work too 😞

I saw a solution as below link from hubspot. How to create a cssClass? Can I create cssClass in VS code? Can I use this method in VS code?

It would be great if you can explain it in details.

[https://community.hubspot.com/t5/CMS-Development/How-do-I-add-custom-css-to-a-form-in-Hubspot/td-p/696836](https://community.hubspot.com/t5/CMS-Development/How-do-I-add-custom-css-to-a-form-in-Hubspot/td-p/696836)
