I need to be able to allow users to update their location pin on a map using a button while having a form open but not allow them to drag and drop their pin location. I am attempting to create a scavenger hunt where items you are awarded points when you get close enough to a location. That is why I dont want to allow them the opportunity to drag and drop their location.
You can make a column in your form where the app formula is set to "Here()". Once you have the form open though, there isn't a way to have the app grab your location by its self without using the pin to drag and drop
Right, so I even toyed around with having an additional enum column that is a number and when pressed adds a 0.00001 to the latitude and then when deselected, it takes it away. But it seems like once the here() formula is used once within the form, that is the only location it will use until the form is closed and re-opened in a new lcoation.
Yeah, as far as I know, thereโs no way for it to refresh the here() function while the form is open. Maybe thereโs another approach you could try? You say youโre making a scavenger hunt app that they need to be close by to mark when theyโve found something?
Hereโs another approach that might work. Have one table of Users and another table of Places. Have a button that triggers a behavior that updates the Users [last location] column to here(). Then in your Places, have a virtual column that calculates the distance between the Userโs [last location] column and the Placeโs [location].
Then have another virtual column on Places that says like โif distance between user and location is less that 10 feet, then true/they are closeโ. Then you could have a button that marks that youโve been there that only appears if that virtual column is True.
Thereโs probably a simpler way still to do that but would something like that work?
Use the function HERE() in the formula colum of location, and hide this colum in the form. So when they complete the form their location will be update.
The only problem it's that you can not control if the users have their GPS Location activated on their devices, if not, you will get a random location middle of ocean.
Instead of using a form view for this task, give them access to action button(s) on a detail view.
User | Count |
---|---|
19 | |
10 | |
7 | |
7 | |
5 |