Welcome to the LimeSurvey Community Forum

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

Iphone 'return' button and normal previous page

  • basvisscher
  • basvisscher's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 5 months ago - 8 years 5 months ago #126208 by basvisscher
Hello everybody,

I hope someone can help me with these two problems i have encountered. I am using the default theme.

1. When user of survey is using an iphone and types a text with iphone keyboard there is a return button to submit what you typed. Sometimes called send button but the button returns you to the previous page. All data still is there when you press next in the site navigation. But this is not a desirable way of filling in the survey.
My question is:
- Is it possible to disable this iphone keyboard button through the site.
- Or Is it possible to edit the action performed using this button. SO it just closes the iphone's keyboard instead of going to the previous page.


2. When users of pc's etc. press the browsers previous button the site stops and all data is gone.
What can i do to prevent this? In chrome it says 'ERR_CACHE_MISS' but in every browser it stops.


I hope you guys can help me out.
Last edit: 8 years 5 months ago by basvisscher.
The topic has been locked.
More
8 years 5 months ago #126209 by Ben_V
Hello,
Have you seen this previous post ?

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The following user(s) said Thank You: basvisscher
The topic has been locked.
  • basvisscher
  • basvisscher's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 5 months ago - 8 years 5 months ago #126210 by basvisscher
Replied by basvisscher on topic Iphone 'return' button and normal previous page
Thank you very much!
Ok i did read it. This was a solution i put it in the question.pstpl file on top.
<script>
$(document).ready(function() {
$('input').on('keydown keypress', function(e) {
if(e.keyCode === 13) {
return false;
}
});
});.

</script>



And question 2 still stands, what to do if the previous browser butten is pressed. Now the survey stops with the 'ERR_CACHE_MISS' error.
Last edit: 8 years 5 months ago by basvisscher. Reason: Wanted to say thanks.
The topic has been locked.
More
8 years 5 months ago #126213 by Ben_V
you are welcome

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
More
4 years 11 months ago #182738 by Tamiakay

basvisscher wrote: Hello everybody,

I hope someone can help me with these two problems i have encountered. I am using the default theme.

1. When user of survey is using an iphone and types a text with iphone keyboard there is a return button to submit what you typed. Sometimes called send button but the button returns you to the previous page. All data still is there when you press next in the site navigation. But this is not a desirable way of filling in the survey.
My question is:
- Is it possible to disable this iphone keyboard button through the site.
- Or Is it possible to edit the action performed using this button. SO it just closes the iphone's keyboard instead of going to the previous page.



2. When users of pc's etc. press the browsers previous button the site stops and all data is gone.
What can i do to prevent this? In chrome it says 'ERR_CACHE_MISS' but in every browser it stops.


I hope you guys can help me out.


Are you still facing the issue?
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose