# Maybe a bug for 'Define unique variable'

**URL:** <https://community.yeeflow.com/t/maybe-a-bug-for-define-unique-variable/54>\
**Category:** Ask the community\
**Created:** [August 10, 2021, 3:00am UTC](https://community.yeeflow.com/t/maybe-a-bug-for-define-unique-variable/54 "2021-08-10T03:00:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![john55ww](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@john55ww](https://community.yeeflow.com/u/john55ww)\
**Post date:** [August 10, 2021, 3:00am UTC](https://community.yeeflow.com/t/maybe-a-bug-for-define-unique-variable/54/1 "2021-08-10T03:00:19Z")

</div>

Hi, I’m trying to delete a unique variable in a form designer.  
However, when I click the ‘delete’ button → OK → release.  
It shown that the unique variable still not deleted.

 ![479eeea95fd2a4606d766c3ef5f0f8a](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/8995edf8e0e926e8e60b3f4b049f67c2e3b49a53.png)

An interesting thing is that, if I click the ‘delete’ button → Cancel → release.  
Then the unique variable was deleted.  
Already confirmed this phenomenon in another form designer.

I think maybe there is something wrong with this two button in this picture.

---

<div class="post-metadata">

**Author:** ![john55ww](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@john55ww](https://community.yeeflow.com/u/john55ww)\
**Post date:** [August 10, 2021, 4:57am UTC](https://community.yeeflow.com/t/maybe-a-bug-for-define-unique-variable/54/2 "2021-08-10T04:57:51Z")

</div>

Another question here.

The reason why I tried to delete the unique variable is that I found that a ‘null’ value also counted as a unique value. So when I keep leaving the unique variable empty in my form.  
The second time I submit the form, it warned me the unique variable can not be repeated.  
I wonder if the ‘null’ value do be counted as a value.

In addition, I was making a approval form for updating the existing data. I think it means that I can not do such approval form if a unique variable is included.

---

<div class="post-metadata">

**Author:** ![frank](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@frank](https://community.yeeflow.com/u/frank)\
**Post date:** [August 10, 2021, 7:58am UTC](https://community.yeeflow.com/t/maybe-a-bug-for-define-unique-variable/54/3 "2021-08-10T07:58:17Z")

</div>

@john55ww

Thanks for reporting this. It’s a bug for sure. We will fix it next release.

For your second question, Yes ‘null’ is counted as a unique value. In current design, you have to force user to provide a value for the variable. I will submit your concern to product team. I will update here if there’s any other thoughts for this feature from product team.

---

<div class="post-metadata">

**Author:** ![john55ww](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@john55ww](https://community.yeeflow.com/u/john55ww)\
**Post date:** [August 10, 2021, 9:50am UTC](https://community.yeeflow.com/t/maybe-a-bug-for-define-unique-variable/54/4 "2021-08-10T09:50:06Z")

</div>

@frank  
Thank you very much for your response.  
I will also find another way to accomplish that feature
