# Are my blocks correct? It works but crashes

**URL:** https://community.thunkable.com/t/are-my-blocks-correct-it-works-but-crashes/2466806
**Category:** Questions about Thunkable X
**Created:** [June 14, 2023, 10:18pm UTC](https://community.thunkable.com/t/are-my-blocks-correct-it-works-but-crashes/2466806 "2023-06-14T22:18:40Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![kcmahlo](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@kcmahlo](https://community.thunkable.com/u/kcmahlo)
#### Post date: [June 14, 2023, 10:18pm UTC](https://community.thunkable.com/t/are-my-blocks-correct-it-works-but-crashes/2466806/1 "2023-06-14T22:18:40Z")

</div>

I’ve been stuck on parts of my app for a bit now and haven’t reached a solution. I hope somebody can please take a look at my blocks and let me know if I have used them properly.

The app works just fine on web, but crashes on mobile when I click the Strain or Product button. I have tried with my Pixel 5 and a Samsung Galaxy S8+.

For the screen in question, when you click the Strain or Product button, there is a drop down list, from which you may choose one. The chosen entry changes color, and then the text is pushed to the button.

Is there a better way to arrange the blocks to have the same function? Perhaps if there is, I can solve the crashing problem.

I have included screenshots of the Strain and Product details, as well as screenshots of the blocks that came before them, in case they are causing an issue.

Thanks for taking the time to look 🙂

 ![Screen Shot 2023-06-14 at 5.15.04 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/4/74fe9c62ededd0db623868245a6fb4058d41f13a.png)  
 ![Screen Shot 2023-06-14 at 5.15.23 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/0/c0ceb029d40f7e0082b9f02ebe863cb23e276cb7.png)  
 ![Screen Shot 2023-06-14 at 5.15.47 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/8/78b2fedfc822d24a6c093f9e77b9b2dccc7e62fb.png)  
 ![Screen Shot 2023-06-14 at 5.16.09 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/9/893fbb6853fe42edb027b8cfb0b657e18a8e3758.png)

---

<div class="post-metadata">

### Author: ![stupikk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stupikk/32/155692_2.png) [@stupikk](https://community.thunkable.com/u/stupikk)
#### Post date: [June 16, 2023, 10:23am UTC](https://community.thunkable.com/t/are-my-blocks-correct-it-works-but-crashes/2466806/2 "2023-06-16T10:23:47Z")

</div>

Ah… I’m honestly not quite sure what’s happening. Try adding more delays, as large events (Depending on the device) Tend to crash when data is taken from them immediately. With the product viewer crashing on item click, you’re technically editing the product viewer and immediately changing the background colour of one of the rows. As for why clicking the Strain button doesn’t work, I have no idea. I might need to understand what {PRODUCT, STRAIN}\_group means.

As for rearranging the blocks, this is probably as concise as it gets. You can try experimenting without the buttons first.

---

<div class="post-metadata">

### Author: ![kcmahlo](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@kcmahlo](https://community.thunkable.com/u/kcmahlo)
#### Post date: [June 16, 2023, 3:41pm UTC](https://community.thunkable.com/t/are-my-blocks-correct-it-works-but-crashes/2466806/3 "2023-06-16T15:41:23Z")

</div>

Strain Group or Product Group - contains the list viewer and the Done button together.

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [June 16, 2023, 4:38pm UTC](https://community.thunkable.com/t/are-my-blocks-correct-it-works-but-crashes/2466806/4 "2023-06-16T16:38:09Z")

</div>

There’s a known bug that prevents changing a Data Viewer List’s background color using blocks. See this: [Can't change container background color manually in DVL](https://community.thunkable.com/t/cant-change-container-background-color-manually-in-dvl/2459628)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [September 14, 2023, 4:38pm UTC](https://community.thunkable.com/t/are-my-blocks-correct-it-works-but-crashes/2466806/5 "2023-09-14T16:38:29Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
