Script: Complex Grid - Mobile Smart - Snap Back to Top of Page
This article will help you add code to Mobile Smart Grids to move back to the top of the screen for the next attribute
Background
There are some instances in which you will be trying to program a survey in a manner that will help mobile respondents have a good survey taking experience. If you have a Mobile Smart Grid with more than one row, you will need the following code to snap back to the top of the screen for the next attribute.
Instructions
- Program your Mobile Smart Grid
- Add the following code to the 'ADD JAVASCRIPT' field
- See article: Adding JavaScript and/or CSS to a Question
- You will need to replace 'Q555' in the code below with your specific question number
jQuery("#cm-NextButton").attr("href","#question-Q555");
- A few things to note about this code:
- This code assumes you only have the one grid on a page with no other questions on the same page.
- Make sure to test on your desktop as well as a mobile device to ensure its working as needed