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.
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.
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?
Instead of using a form view for this task, give them access to action button(s) on a detail view.