# The "lenght" function cannot be

**URL:** <https://forum.wixstudio.com/t/the-lenght-function-cannot-be/57653>\
**Category:** Ask the community\
**Tags:** code\
**Created:** [March 29, 2024, 9:53am UTC](https://forum.wixstudio.com/t/the-lenght-function-cannot-be/57653 "2024-03-29T09:53:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bagus](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/bagus/32/20814_2.png) [@bagus](https://forum.wixstudio.com/u/bagus)\
**Post date:** [March 29, 2024, 9:53am UTC](https://forum.wixstudio.com/t/the-lenght-function-cannot-be/57653/1 "2024-03-29T09:53:47Z")

</div>

please help me.  
the “lenght” function cannot be

I want to make a disable button when the date input has not been filled.

```javascript
export function datePicker1_change(event) {
if($w('#datePicker1').value.lenght > 0) {
        $w('#button1').enable();
    }else{$w('#button1').disable();
    }}

```

---

<div class="post-metadata">

**Author:** ![anthony](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/anthony/32/79536_2.png) [@anthony](https://forum.wixstudio.com/u/anthony)\
**Post date:** [April 3, 2024, 9:01pm UTC](https://forum.wixstudio.com/t/the-lenght-function-cannot-be/57653/2 "2024-04-03T21:01:01Z")

</div>

> [@bagus](#):
>
> `value.lenght`

This is a typo. It should be `length`
