Substring widget not capturing correct values from GPS location widget

  • Molsen66
    Asked on December 3, 2017 at 5:22 PM

    My maps having been working well using form GPS location and the sub string widgets as displayed above.

    I have noticed though that certain areas on the map don't display correctly in the longitude and latitude examples from above.

    For example if you use search for Sri lanka in your demo above you will see that the longitude sub string widget displays it as (0.77180) instead of (80.77180).

    This setup works all over the world except for just above the equator line where is misses the first value of the longitude.

    The easiest way to see what I'm talking about is to manually drag the map pointer to just above the equator line in your demo and you will see the widget getting confused.

    Would there be a fix to this?

    Cheers,

  • Molsen66
    Replied on December 3, 2017 at 10:45 PM

    Just wondering if there is a way to copy the correct longitude and latitude values?

    Since the substring widget is having trouble collecting the correct values based on the number that gets displayed closer to the equator as they are smaller than the rest of the world.

    Is there a way to tell it to copy all the values up until the comma and then copy all values after the comma?

    That way it won't have any issues with the amount of numbers displayed.

    Marty

  • Ashwin JotForm Support
    Replied on December 4, 2017 at 7:07 AM

    Please note that subsrting widget uses a fixed character count value for the start and end character of the string.

    Unfortunately it is currently not possible to get the index value of the any character of string. Let me test and get back to you if I am able to find any workaround to achieve your requirement.