Able to submit data in Desktop form but not in mobile

Hi There,

Have achieved the geolocation through geolocation() using wix-window and its working fine in desktop and stored in Sandbox collection and if I do the same in the mobile its not coming in Live database. Infact out of 3 fields only 1 field is coming. Strange isn’t it?
After going through various forums.
I have done the following

  1. Right permission to Write only
  2. Members only in collections permission.
  3. Dataset in the field is also connected to the collection

My point once its done is desktop, how come its not coming through mobile browser. I am not sure where I am missing.

Please help out

Somebody help me. I saw that the code perfectly worked in Sandbox but not in Live.

In Live database if you could see first name is getting added and other data like Latitude and Longitude is not getting added.

Logically if you look at it.

  1. In the Sandbox its getting added which means programmatically its right.
  2. When it comes Live due to permission we might see that the permissions are not set. If those permissions are n’t there how come only one field is updated and not the others. Looks too complicated or is this a bug?

If Yes, I can move on. Please correct me if I am going wrong somethere

Could you please provide a link to your site?

https://corphrcontinental.wixsite.com/knowbase/formtesting

Hi,

I don’t see any values (except for name) being added to the collection even in Sandbox. The problem is the wrong permissions on the collection.

This is what you currently have:


You need to set permissions to Form Submission:


Good luck and have fun,

Yisrael

Thanks YIsrael. I am sorry for the permission that I have set. This was purely out of frustration. However now the latitude and longitude is not coming in Sandbox also.

My concern is when Name is coming why Latitude and Longitude alone is not coming. If there is a permission issue then even the name shouldnt be there right?

There is some problem with Latitude getting added in database. Any thoughts or advise.

Well, I’m playing with the cloned copy of your site (from yesterday) and it works fine.

However, I see that your site doesn’t save lat and lng. Also, with your site (in your account) I don’t always get the lat and lng to appear in the text fields.

As far as your problem, I would suggest deleting the dataset to start clean. Then add a new dataset connect it up and see if that fixes things. Let me know if this helps.

I still have no explanation why the latitude and longitude don’t always appear.

I seem to have come up with a workaround for your problem.

Change the code where you set the lat/lng text fields to this:

$w("#latitude").value= "" + latitude;
$w("#dataset1").setFieldValue("latitude", latitude);
$w("#longitude").value="" + longitude;
$w("#dataset1").setFieldValue("longitude", longitude);	

I tested this and it works. Also fixed a problem I was having with one of my projects. :smiling_face:

I hope this helps.

Yisrael

Dear YIsrael

You are a Super Star. It works great.

You made my Easter Sir.

Keep rocking

Hi Yisrael!

Why is it that I cannot able to see submit data in mobile also but I can in desktop? I don’t use any code. Ijust connect everything to my database.

Amazing… That was my problem. For some reason on desktop I had no problems, only on mobile.