# Problems with "Fields marked with an asterisk (\*) are required"

**URL:** <https://discourse.psychopy.org/t/problems-with-fields-marked-with-an-asterisk-are-required/29342>\
**Category:** Online experiments\
**Created:** [May 27, 2022, 12:22pm UTC](https://discourse.psychopy.org/t/problems-with-fields-marked-with-an-asterisk-are-required/29342 "2022-05-27T12:22:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marayuso](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@marayuso](https://discourse.psychopy.org/u/marayuso)\
**Post date:** [May 27, 2022, 12:22pm UTC](https://discourse.psychopy.org/t/problems-with-fields-marked-with-an-asterisk-are-required/29342/1 "2022-05-27T12:22:39Z")

</div>

Hi, I have an experiment in JS (I’m not using it in pavlovia or psychopy) and I’m trying to have some fields obligatories by using \* like in the image, but it doesn’t work.  
Could somebody help me?  
Best regards.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/0/b/0bb15498b996710783c5c3e994a91f5a4f3fcd4e.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/6/e/6e220d1ba94dc9c35efb93298cd84a215635f4c4.png)

---

<div class="post-metadata">

**Author:** ![Becca](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/becca/32/34260_2.png) [@Becca](https://discourse.psychopy.org/u/Becca)\
**Post date:** [May 27, 2022, 5:44pm UTC](https://discourse.psychopy.org/t/problems-with-fields-marked-with-an-asterisk-are-required/29342/2 "2022-05-27T17:44:33Z")

</div>

Please can you tell us more about what doesn’t work? is it that the experiment progresses even when those fields are not complete?

Becca

---

<div class="post-metadata">

**Author:** ![marayuso](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@marayuso](https://discourse.psychopy.org/u/marayuso)\
**Post date:** [May 30, 2022, 6:33am UTC](https://discourse.psychopy.org/t/problems-with-fields-marked-with-an-asterisk-are-required/29342/3 "2022-05-30T06:33:44Z")

</div>

It’s supposed that when I include the asterisk and when the fields are not filled the ok button shouldn’t work, but the button works.
