# Should the app get the location even if the user unchecks it?

**URL:** <https://community.glideapps.com/t/should-the-app-get-the-location-even-if-the-user-unchecks-it/78326>\
**Category:** Ask for Help\
**Created:** [December 3, 2024, 5:07pm UTC](https://community.glideapps.com/t/should-the-app-get-the-location-even-if-the-user-unchecks-it/78326 "2024-12-03T17:07:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luiz\_Roberto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/luiz_roberto/32/80972_2.png) [@Luiz\_Roberto](https://community.glideapps.com/u/Luiz_Roberto)\
**Post date:** [December 3, 2024, 5:07pm UTC](https://community.glideapps.com/t/should-the-app-get-the-location-even-if-the-user-unchecks-it/78326/1 "2024-12-03T17:07:52Z")

</div>

I’m creating a screen using “current location”, but I think there may be a logic error in this component. Once my user activates the switch to get their location, if they clicked it by mistake and want to uncheck it, their location will still be recorded.

[Example video](https://drive.google.com/file/d/1EVr4sI8jtHx8B10OhVWojMxvw4fp-3E8/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)\
**Post date:** [December 3, 2024, 5:27pm UTC](https://community.glideapps.com/t/should-the-app-get-the-location-even-if-the-user-unchecks-it/78326/2 "2024-12-03T17:27:10Z")

</div>

The value is already set. Clear it after disabling the location, refresh the app, and verify if it gets reinserted.

---

<div class="post-metadata">

**Author:** ![Luiz\_Roberto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/luiz_roberto/32/80972_2.png) [@Luiz\_Roberto](https://community.glideapps.com/u/Luiz_Roberto)\
**Post date:** [December 3, 2024, 5:39pm UTC](https://community.glideapps.com/t/should-the-app-get-the-location-even-if-the-user-unchecks-it/78326/3 "2024-12-03T17:39:01Z")

</div>

I believe it should work like the switch (True or False), when I uncheck my location, the correct thing would be for the field to be empty.

I even tried it on a form and it continues to record the location, even though it is disabled at the time of sending.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [December 4, 2024, 1:01am UTC](https://community.glideapps.com/t/should-the-app-get-the-location-even-if-the-user-unchecks-it/78326/4 "2024-12-04T01:01:19Z")

</div>

> [@Luiz\_Roberto](#):
>
> I believe it should work like the switch (True or False), when I uncheck my location, the correct thing would be for the field to be empty.

I agree with this, there isn’t a native column for devs to know whether the user has enabled location or not, so unchecking should clear that value.

---

<div class="post-metadata">

**Author:** ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)\
**Post date:** [December 4, 2024, 3:31am UTC](https://community.glideapps.com/t/should-the-app-get-the-location-even-if-the-user-unchecks-it/78326/5 "2024-12-04T03:31:42Z")

</div>

At first, I thought the same as you. However, I believe that the location button is more about starting or stopping the recording of your location, rather than filling in or clearing the field. I tried clearing the filled value while keeping the button active, and within about 10 seconds, the coordinates field was filled again. This can be very useful if you want to update your user’s position periodically.

If you place the location button within a form and are concerned that your users might accidentally activate it, it would be better to display a warning and a button asking them to clear it. This way, your users will also feel more assured that they are not being tracked by the app.
