CopyToClipboard() less than desirable results on iPhone

Question:
I have implemented the copyToClipboard() feature on a test page (SaltLakeOffRoadRecovery.com/map) and it works as desired from a desktop, and also functions from an iPhone, but not without a clunky pop-up window from the Safari browser (See attached screen), asking the user to manually highlight and then copy the text in question.

Side note: The only reason I need this page is because the “Get My Location” feature doesn’t work inside of a Wix Form or a 123formbuilder form. If anyone has a solution to get both the “get my location” and “copy my coordinates” functions to work inside of a Wix form or 123formbuilder form, OR to pass the user’s coordinates to one of those forms which would remove the need for the user to copy it altogether, I would be forever grateful.

Product:
Wix Editor (Dev Mode)

What are you trying to achieve:
I need the user to be able to find their device coordinates, and then through the click of a button (after verifying the location on the map is accurate) pass those coordinates into a form (preferably 123formbuilder, but Wix forms would also be acceptable).

What have you already tried:
As previously mentioned, I have already tried the copyToClipboard() function, but won’t need that function if there’s a way to pass the users coordinates into a form.

1 Like

This may be a limitation of safari, but if you would like to report a bug you may do so here Wix Studio - How to report a bug

regarding your other question - can you save the coordinates to locat storage then pass to your form builder? I’m not familar with 123form so I do not know what they expose for passing data. Velo Wix Storage Frontend Introduction | Velo

Hi Amanda, I appreciate your reply. I know it’s not a specific limitation of Safari, as I can find examples of this function on other sites and don’t have the same issue. I’ll submit a bug report. Thank you!

1 Like

I also encountered the same problem

oh,i have same issue