# App Lab coding question

**URL:** <https://forum.code.org/t/app-lab-coding-question/26766>\
**Category:** Coding and Debugging Help\
**Created:** [May 8, 2019, 12:38am UTC](https://forum.code.org/t/app-lab-coding-question/26766 "2019-05-08T00:38:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![molson](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@molson](https://forum.code.org/u/molson)\
**Post date:** [May 8, 2019, 12:38am UTC](https://forum.code.org/t/app-lab-coding-question/26766/1 "2019-05-08T00:38:36Z")

</div>

My students are creating a digital breakout using the App Lab. Some want to use text as one of the locks. They are wondering how they can have their app recognize text input when it is correct, and then go to another screen. We know how to link screens, but not how to incorporate the appropriate if-then code using text.

---

<div class="post-metadata">

**Author:** ![bradleywellsashley](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bradleywellsashley/32/522_2.png) [@bradleywellsashley](https://forum.code.org/u/bradleywellsashley)\
**Post date:** [May 12, 2019, 12:44am UTC](https://forum.code.org/t/app-lab-coding-question/26766/2 "2019-05-12T00:44:07Z")

</div>

Molly,

You’ll want to create a variable to assign the userInput to and then check that variable against the answer in an if/else conditional. Check out the project below for an example.

> **[Check out what I made](https://studio.code.org/projects/applab/YmsYXvHc6cvKvcBRvViO9VDcR1O0pU1FNWWLfUtriF4)**
>
> I wrote the code myself with Code.org

Hope that helps, sounds like a great idea!  
Brad

---

<div class="post-metadata">

**Author:** ![pkoleszar](https://avatars.discourse-cdn.com/v4/letter/p/b38774/32.png) [@pkoleszar](https://forum.code.org/u/pkoleszar)\
**Post date:** [January 13, 2022, 6:59pm UTC](https://forum.code.org/t/app-lab-coding-question/26766/3 "2022-01-13T18:59:34Z")

</div>

I am working on a breakout room app as well. My problem is that the text input box is showing a list of autocomplete answers, for every correct answer I’ve tested. Wrong answers are not on the list. I would like to clear the autocomplete. What code do I need to add?

I tested by sending my phone and my laptop the app, and my test answers from development on the PC were still on the autocomplete list.

See my project here: [App Lab - Code.org](https://studio.code.org/projects/applab/J2zf_j0Y7isV15p0-l2CYie9VADjIr4AK8aKLttd5Cg)

Thank you!!

---

<div class="post-metadata">

**Author:** ![pkoleszar](https://avatars.discourse-cdn.com/v4/letter/p/b38774/32.png) [@pkoleszar](https://forum.code.org/u/pkoleszar)\
**Post date:** [January 13, 2022, 10:16pm UTC](https://forum.code.org/t/app-lab-coding-question/26766/4 "2022-01-13T22:16:47Z")

</div>

I ended up working around by creating a new text input every time the code is run, and deleting it at reset. I added a counter and used it to name the text input, so each new one was a truly new element and had no history to pop up.

---

<div class="post-metadata">

**Author:** ![acarter1](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@acarter1](https://forum.code.org/u/acarter1)\
**Post date:** [January 17, 2022, 12:58am UTC](https://forum.code.org/t/app-lab-coding-question/26766/5 "2022-01-17T00:58:20Z")

</div>

Clever! I could be wrong- but I think those autocompletes are stored in YOUR computer because you’ve been typing them in. This wouldn’t show up on a student’s computer. I guess if they’re sharing devices, that could be a problem. Neat workaround!

---

<div class="post-metadata">

**Author:** ![jcharpentier](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@jcharpentier](https://forum.code.org/u/jcharpentier)\
**Post date:** [December 29, 2023, 4:55pm UTC](https://forum.code.org/t/app-lab-coding-question/26766/6 "2023-12-29T16:55:46Z")

</div>

> [@pkoleszar](#):
>
> My problem is that the text input box is showing a list of autocomplete answers,

Is there another possible solution to remove autocomplete answers? Students play with each other apps as a gallery-walk-type activity. Removing the autocomplete text would make trivia games more fun.

---

<div class="post-metadata">

**Author:** ![mwood](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mwood/32/4941_2.png) [@mwood](https://forum.code.org/u/mwood)\
**Post date:** [January 1, 2024, 5:56am UTC](https://forum.code.org/t/app-lab-coding-question/26766/7 "2024-01-01T05:56:30Z")

</div>

This is a browser setting that is different from browser to browser. The link below is one of many that will show you how to disable it, but I don’t believe that it can be disabled other than through your browser settings.

[https://support.mindbodyonline.com/s/article/203260523-How-to-disable-the-form-autofill-feature-in-your-browser?language=en\_US](https://support.mindbodyonline.com/s/article/203260523-How-to-disable-the-form-autofill-feature-in-your-browser?language=en_US)

Mike
