# Cannot switch back to Blocks

**URL:** <https://forum.code.org/t/cannot-switch-back-to-blocks/34750>\
**Category:** Coding and Debugging Help\
**Created:** [May 20, 2021, 6:13pm UTC](https://forum.code.org/t/cannot-switch-back-to-blocks/34750 "2021-05-20T18:13:39Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![dzulkiewski](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/dzulkiewski/32/84_2.png) [@dzulkiewski](https://forum.code.org/u/dzulkiewski)\
**Post date:** [May 20, 2021, 6:13pm UTC](https://forum.code.org/t/cannot-switch-back-to-blocks/34750/1 "2021-05-20T18:13:39Z")

</div>

A student had switched over to text while she was fixing a few errors. We were unable to go back to block until we fixed the error. We worked on the code and there are no more red boxes or yellow triangles, but she still cannot go back to block. She continues to receive a pop up that says she has to correct the errors. We have refreshed the browser several times.  
What else can we do?

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [May 20, 2021, 6:27pm UTC](https://forum.code.org/t/cannot-switch-back-to-blocks/34750/2 "2021-05-20T18:27:43Z")

</div>

Could you share the link to the project? There must be some text that is not recognizable.

---

<div class="post-metadata">

**Author:** ![dzulkiewski](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/dzulkiewski/32/84_2.png) [@dzulkiewski](https://forum.code.org/u/dzulkiewski)\
**Post date:** [May 27, 2021, 5:30pm UTC](https://forum.code.org/t/cannot-switch-back-to-blocks/34750/3 "2021-05-27T17:30:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [May 27, 2021, 5:45pm UTC](https://forum.code.org/t/cannot-switch-back-to-blocks/34750/4 "2021-05-27T17:45:30Z")

</div>

There was something wrong with the filter method. I just changed it a bit (added braces around the for loop and added a space after the “==”). It now toggles properly. Here is the project.

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

---

<div class="post-metadata">

**Author:** ![dzulkiewski](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/dzulkiewski/32/84_2.png) [@dzulkiewski](https://forum.code.org/u/dzulkiewski)\
**Post date:** [May 27, 2021, 5:48pm UTC](https://forum.code.org/t/cannot-switch-back-to-blocks/34750/5 "2021-05-27T17:48:33Z")

</div>

That’s interesting. We found a missing { on 28 to start the loop and a missing } on 33 to end it. We just figured it out as well, but with a different solution

---

<div class="post-metadata">

**Author:** ![dzulkiewski](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/dzulkiewski/32/84_2.png) [@dzulkiewski](https://forum.code.org/u/dzulkiewski)\
**Post date:** [May 27, 2021, 5:50pm UTC](https://forum.code.org/t/cannot-switch-back-to-blocks/34750/6 "2021-05-27T17:50:30Z")

</div>

My bad, same solution for both of us.  
Would you mind running the code and seeing if you can help us with the following:  
When we run the code the setText for Income and PercentChange are not updating for us properly. Any idea what we are missing?

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [May 27, 2021, 6:23pm UTC](https://forum.code.org/t/cannot-switch-back-to-blocks/34750/7 "2021-05-27T18:23:14Z")

</div>

The problem is in your filter method. I have changed it. You will need to add all the conditions to get it to work.

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

---

<div class="post-metadata">

**Author:** ![dzulkiewski](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/dzulkiewski/32/84_2.png) [@dzulkiewski](https://forum.code.org/u/dzulkiewski)\
**Post date:** [June 1, 2021, 5:54pm UTC](https://forum.code.org/t/cannot-switch-back-to-blocks/34750/8 "2021-06-01T17:54:34Z")

</div>

Thanks  
Same student, new issue.  
She wants to grab information from one cell based on the drop down selection the user makes. Is that possible and if so, how?

---

<div class="post-metadata">

**Author:** ![dzulkiewski](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/dzulkiewski/32/84_2.png) [@dzulkiewski](https://forum.code.org/u/dzulkiewski)\
**Post date:** [June 1, 2021, 6:53pm UTC](https://forum.code.org/t/cannot-switch-back-to-blocks/34750/9 "2021-06-01T18:53:23Z")

</div>

Thanks for the help.  
This project is a mess. Sorry for the emails

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [June 1, 2021, 7:15pm UTC](https://forum.code.org/t/cannot-switch-back-to-blocks/34750/10 "2021-06-01T19:15:28Z")

</div>

She would need to filter the column based on the selection, just like she is doing now. But, this time only one cell element would be selected. She would then need to update the area where she is displaying the information.

---

<div class="post-metadata">

**Author:** ![dzulkiewski](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/dzulkiewski/32/84_2.png) [@dzulkiewski](https://forum.code.org/u/dzulkiewski)\
**Post date:** [June 1, 2021, 7:30pm UTC](https://forum.code.org/t/cannot-switch-back-to-blocks/34750/11 "2021-06-01T19:30:37Z")

</div>

Thank yoi

David Zulkiewski

---

<div class="post-metadata">

**Author:** ![dzulkiewski](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/dzulkiewski/32/84_2.png) [@dzulkiewski](https://forum.code.org/u/dzulkiewski)\
**Post date:** [January 10, 2022, 1:59am UTC](https://forum.code.org/t/cannot-switch-back-to-blocks/34750/12 "2022-01-10T01:59:43Z")

</div>

Having the same issue again this year. We have been digging through the code for more than a class. Can you help. [App Lab - Code.org](https://studio.code.org/projects/applab/zB4zr7oLcPzdr0BmN8tqxHZZJ8jJvp5CrrmV9jdNQ70)

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [January 11, 2022, 12:36am UTC](https://forum.code.org/t/cannot-switch-back-to-blocks/34750/13 "2022-01-11T00:36:38Z")

</div>

**[Please provide more details so someone can help you. Feel free to delete everything in brackets before posting your request for debugging help.]**

**Link to the project or level:** [replace with link to the curriculum or get the “Share” link to a project]  
**What I expect to happen:** [replace with a detailed description of the behavior you’re trying to create]  
**What actually happens:** [replace with a detailed description of what actually happens when the code runs including any errors or unexpected behavior]  
**What I’ve tried:** [replace with a detailed description of what you’ve already tried to do to solve the problem]

---

<div class="post-metadata">

**Author:** ![jdonwells](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/jdonwells/32/7900_2.png) [@jdonwells](https://forum.code.org/u/jdonwells)\
**Post date:** [January 11, 2022, 12:30pm UTC](https://forum.code.org/t/cannot-switch-back-to-blocks/34750/14 "2022-01-11T12:30:03Z")

</div>

It appears to be working now. I was able to switch.

---

<div class="post-metadata">

**Author:** ![griffinisdope](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@griffinisdope](https://forum.code.org/u/griffinisdope)\
**Post date:** [November 3, 2023, 10:09pm UTC](https://forum.code.org/t/cannot-switch-back-to-blocks/34750/15 "2023-11-03T22:09:08Z")

</div>

I have been having the same problem!

---

<div class="post-metadata">

**Author:** ![mkmietowicz](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mkmietowicz/32/6322_2.png) [@mkmietowicz](https://forum.code.org/u/mkmietowicz)\
**Post date:** [November 6, 2023, 7:34am UTC](https://forum.code.org/t/cannot-switch-back-to-blocks/34750/16 "2023-11-06T07:34:13Z")

</div>

Hi @griffinisdope,

I’d recommend looking through the code for typos, as that appears to be what was causing the issue for users in the past. If you still can’t find it, please click “share” in the upper left of the project in question & drop the link here. We’d be happy to put another set of eyes on it.

– Michael K.
