We have a Power App standalone canvas app which is connected to SQL. now when the user submit a form we need to capture his coordinates' latitude longitude? is this possible?
Thanks
Solved! Go to Solution.
Yes it is
Location.Latitude
Location.Longitude
You can set the default of textbox like that
Hi @johnjohn123,
Do you want to get the GPS coordinates for each submitter?
Could you please tell me that if you want to save this coordinates data in your data source?
Generally, the GPS coordinates would not display like a pop-up message, it usually display as a text string in the screen which could not be affected by user interaction. It just displays in a Label or TextInput control.
If you want to save it, you should create 2 fields to store the coordinates value, just add the corresponding field to your form, and set the Default property of the Text Input as below:
"lat:" &Location.Latitude& "," & "lng:"&Location.Longitude
Once you submit form, the coordinates values could be saved to your SQL table as well.
If you do not want to save it into your SQL table, you just need a Label or a Text Input and set the formula as above to display the GPS coordinates.
Hope it could help you.
Yes it is
Location.Latitude
Location.Longitude
You can set the default of textbox like that
@Nogueira1306Thanks for the help ...so this will show a popup on the user browser to allow getting the current location,, is this correct?
Yes sir
@Nogueira1306 so is there a way to always get the coordinations even if the user disable or reject the popup?
Nope... That is like the camera control, for example
Hi @johnjohn123,
Do you want to get the GPS coordinates for each submitter?
Could you please tell me that if you want to save this coordinates data in your data source?
Generally, the GPS coordinates would not display like a pop-up message, it usually display as a text string in the screen which could not be affected by user interaction. It just displays in a Label or TextInput control.
If you want to save it, you should create 2 fields to store the coordinates value, just add the corresponding field to your form, and set the Default property of the Text Input as below:
"lat:" &Location.Latitude& "," & "lng:"&Location.Longitude
Once you submit form, the coordinates values could be saved to your SQL table as well.
If you do not want to save it into your SQL table, you just need a Label or a Text Input and set the formula as above to display the GPS coordinates.
Hope it could help you.
User | Count |
---|---|
125 | |
87 | |
86 | |
75 | |
69 |
User | Count |
---|---|
217 | |
181 | |
140 | |
97 | |
83 |