# "Remember Me" Switch Disabled When Fields Are Empty

**URL:** <https://community.thunkable.com/t/remember-me-switch-disabled-when-fields-are-empty/31317>\
**Category:** Questions about Thunkable X\
**Created:** [June 12, 2018, 2:29pm UTC](https://community.thunkable.com/t/remember-me-switch-disabled-when-fields-are-empty/31317 "2018-06-12T14:29:24Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kyle\_Williams](https://avatars.discourse-cdn.com/v4/letter/k/b2d939/32.png) [@Kyle\_Williams](https://community.thunkable.com/u/Kyle_Williams)\
**Post date:** [June 12, 2018, 2:29pm UTC](https://community.thunkable.com/t/remember-me-switch-disabled-when-fields-are-empty/31317/1 "2018-06-12T14:29:24Z")

</div>

I have a login page with two text fields, “email” and “password”, and I also have a “Remember Me” switch that I want to be disabled until both fields are ≠ empty. What is the proper way to check for those fields to be empty? I tried using a timer that checked once per second but it’s causing the screen to flash while text is being entered. Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 12, 2018, 2:33pm UTC](https://community.thunkable.com/t/remember-me-switch-disabled-when-fields-are-empty/31317/2 "2018-06-12T14:33:25Z")

</div>

If you give me a link to your project, it will be easier and faster for me to help you.

The screen flashes - what does it mean? Do you have an Image or Web Viewer component on the screen and they are redrawn?

Automatic check for empty fields is really made by timer.

---

<div class="post-metadata">

**Author:** ![Kyle\_Williams](https://avatars.discourse-cdn.com/v4/letter/k/b2d939/32.png) [@Kyle\_Williams](https://community.thunkable.com/u/Kyle_Williams)\
**Post date:** [June 12, 2018, 2:47pm UTC](https://community.thunkable.com/t/remember-me-switch-disabled-when-fields-are-empty/31317/3 "2018-06-12T14:47:18Z")

</div>

[https://x.thunkable.com/projects/5b1fdaca0f29f5d28735e39e](https://x.thunkable.com/projects/5b1fdaca0f29f5d28735e39e)

The screen is called “Sign In” and yes, there is an image field that “blinks” while text is being typed (when testing on iOS). I want the “Remember Me” box to be enabled when both email and password fields have text (which I have been able to do, but the timer was making it blink incessantly), and also to become disabled again if either field is made empty again.

Please ignore the app’s overall weirdness; it is really a testing ground more than a complete app. Thank you for your help!

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 12, 2018, 2:52pm UTC](https://community.thunkable.com/t/remember-me-switch-disabled-when-fields-are-empty/31317/4 "2018-06-12T14:52:50Z")

</div>

Well, now I’ll take a look.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 12, 2018, 3:13pm UTC](https://community.thunkable.com/t/remember-me-switch-disabled-when-fields-are-empty/31317/5 "2018-06-12T15:13:50Z")

</div>

Check project

[https://x.thunkable.com/projects/5b1fdd1de75f4036e79cf330/project/properties/designer/](https://x.thunkable.com/projects/5b1fdd1de75f4036e79cf330/project/properties/designer/)

Instead of Image, you need to apply some other component with the background image. You can use Column, but I noticed instability in its work - in some cases it shows a background image, but in some there is not. Therefore, we select a button on top of which a transparent Column is superimposed to prevent pressing the button. This is the trick.

Timer input processing did

---

<div class="post-metadata">

**Author:** ![Kyle\_Williams](https://avatars.discourse-cdn.com/v4/letter/k/b2d939/32.png) [@Kyle\_Williams](https://community.thunkable.com/u/Kyle_Williams)\
**Post date:** [June 12, 2018, 3:18pm UTC](https://community.thunkable.com/t/remember-me-switch-disabled-when-fields-are-empty/31317/6 "2018-06-12T15:18:04Z")

</div>

All working perfectly now! Thank you so much for your help.

---

<div class="post-metadata">

**Author:** ![far](https://avatars.discourse-cdn.com/v4/letter/f/439d5e/32.png) [@far](https://community.thunkable.com/u/far)\
**Post date:** [June 12, 2018, 4:29pm UTC](https://community.thunkable.com/t/remember-me-switch-disabled-when-fields-are-empty/31317/7 "2018-06-12T16:29:30Z")

</div>

how you make the “remember me” to work?

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 12, 2018, 4:35pm UTC](https://community.thunkable.com/t/remember-me-switch-disabled-when-fields-are-empty/31317/8 "2018-06-12T16:35:16Z")

</div>

I used a poll of the contents of the input fields for a timer at 100ms

---

<div class="post-metadata">

**Author:** ![far](https://avatars.discourse-cdn.com/v4/letter/f/439d5e/32.png) [@far](https://community.thunkable.com/u/far)\
**Post date:** [June 12, 2018, 7:04pm UTC](https://community.thunkable.com/t/remember-me-switch-disabled-when-fields-are-empty/31317/9 "2018-06-12T19:04:06Z")

</div>

yes, but how the device remember the field ? is it local storage?

thanks

---

<div class="post-metadata">

**Author:** ![far](https://avatars.discourse-cdn.com/v4/letter/f/439d5e/32.png) [@far](https://community.thunkable.com/u/far)\
**Post date:** [June 12, 2018, 9:35pm UTC](https://community.thunkable.com/t/remember-me-switch-disabled-when-fields-are-empty/31317/10 "2018-06-12T21:35:43Z")

</div>

ok i got it its with local storage very simple

thanks anyway

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:02pm UTC](https://community.thunkable.com/t/remember-me-switch-disabled-when-fields-are-empty/31317/11 "2024-11-08T12:02:31Z")

</div>


