Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

how to avoid showing GPS coordinates to the respondent

  • suselko
  • suselko's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 months 6 days ago - 4 months 6 days ago #264733 by suselko
Your LimeSurvey version: 6.5.6 Cloud
Own server or LimeSurvey hosting: LS hosting
Survey theme/template: Backy
==================
I have a survey question where the respondent's location is determined, with permission.  
My issue is that for a brief moment the coordinates are displayed to the respondent, before they are replaced with "Thank you. Tap 'Next'". I would like the respondent to not see the coordinates. Is it possible to stop them from being displayed, or to make the text white (which would make it invisible)? The question is attached. Many thanks in advance!
 
Last edit: 4 months 6 days ago by suselko.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 months 6 days ago #264736 by Joffm
Please, neither provide lsq nor lsg exports, only lss.
Reason:
Both lsq and lsg exports are language sensitive. You only can import them into a survey with the same base language.
So we have to guess the base language, create a survey, create a group to be able to import your export.

Furthermore all surveywide settings are missing.

A lss export we can just import.

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • suselko
  • suselko's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 months 6 days ago #264740 by suselko
Thanks, I have now uploaded the survey.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 months 4 days ago #264867 by Joffm
I should insert a DIV with the text
and hide it by css
Also hide the text container.

After the GPS is capturewd, show the DIV

Like
Code:
<div class="message">Thank you. Tap "Next"</div>
 
...
 
<style type="text/css">
input.location, .message {
    display:none;
  }
</style>
...
            // $('input.text', q1).val("Thank you. Tap 'Next'.");
            // Enable the "Next" button
            $('.message').show();
            $('#ls-button-submit').prop('disabled', false);
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • suselko
  • suselko's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 months 4 days ago #264868 by suselko
Thanks Joffm. I am not familiar with Javascript and am struggling to know where exactly the three bits of your code should go, in relation to the rest of the code. I have tried different options but none worked. Please could you let me know?

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 months 4 days ago - 4 months 4 days ago #264871 by Joffm
Hi,
the first is just the question text.

Then there isx a small c ss snippet which you enter "as it is"; under the javascript part.

And at last the change of the javascript.
You see that I commented your line and added a new one to show the DIV

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 4 months 4 days ago by Joffm.

Please Log in to join the conversation.

  • suselko
  • suselko's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 months 4 days ago #264886 by suselko
Hi Joffm, I have done as suggested and the coordinates are not displayed any more but now the respondent is not asked whether they agree to be geolocated and the coordinates value is empty. I have attached the survey. Thanks

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose