# App crashes when trying to add markers in app with user input

**URL:** <https://community.thunkable.com/t/app-crashes-when-trying-to-add-markers-in-app-with-user-input/198425>\
**Category:** Questions about Thunkable X\
**Created:** [August 27, 2019, 12:16am UTC](https://community.thunkable.com/t/app-crashes-when-trying-to-add-markers-in-app-with-user-input/198425 "2019-08-27T00:16:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sd.mv058em0bo](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sd.mv058em0bo](https://community.thunkable.com/u/sd.mv058em0bo)\
**Post date:** [August 27, 2019, 12:16am UTC](https://community.thunkable.com/t/app-crashes-when-trying-to-add-markers-in-app-with-user-input/198425/1 "2019-08-27T00:16:12Z")

</div>

I want to build an app where I can create a marker based on user inputs. But each time I try to create the marker the app crashes and restarts.Please help me its very important.!

This is the UI and the current code.

 ![Screenshot%20(3)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/7/774c2d3fe3b1ab0c5e376a9183ee3bf25d25319f.png) ![Screenshot%20(4)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/5/45eb3d17b8f0632b7bf5a30304406e904a4f5a2b.png)!

---

<div class="post-metadata">

**Author:** ![CBVG](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cbvg/32/32401_2.png) [@CBVG](https://community.thunkable.com/u/CBVG)\
**Post date:** [August 27, 2019, 1:39am UTC](https://community.thunkable.com/t/app-crashes-when-trying-to-add-markers-in-app-with-user-input/198425/2 "2019-08-27T01:39:09Z")

</div>

You are extracting the latitude and longitude as STRINGS, so instead of having (say) 15.32, you have a text “15.32”.  
Add 0 to the value, or multiply by 1. Using a mathematical operation will force the string to be converted into a number, THEN you can use it as an numerical entry.

---

<div class="post-metadata">

**Author:** ![sd.mv058em0bo](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sd.mv058em0bo](https://community.thunkable.com/u/sd.mv058em0bo)\
**Post date:** [September 6, 2019, 1:18pm UTC](https://community.thunkable.com/t/app-crashes-when-trying-to-add-markers-in-app-with-user-input/198425/3 "2019-09-06T13:18:58Z")

</div>

Thanks for the reply I’ll try your suggestion 😃

---

<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:11pm UTC](https://community.thunkable.com/t/app-crashes-when-trying-to-add-markers-in-app-with-user-input/198425/4 "2024-11-08T12:11:39Z")

</div>


