# Preventing users from swiping back to earlier questions

**URL:** <https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198>\
**Category:** Ideas\
**Tags:** odk-collect\
**Created:** [July 25, 2017, 4:41pm UTC](https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198 "2017-07-25T16:41:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![luis\_gabriel\_Bohorqu](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/l/f05b48/32.png) [@luis\_gabriel\_Bohorqu](https://forum.getodk.org/u/luis_gabriel_Bohorqu)\
**Post date:** [July 25, 2017, 4:41pm UTC](https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198/1 "2017-07-25T16:41:37Z")

</div>

Dear cordial greetings.

I would like to know if there is a way to avoid that the pollster can go back screenshots as he is doing the survey, in other products that he uses for an option to disable the option to go back, I would like to know if odk allows to do the same.

Thank you

---

<div class="post-metadata">

**Author:** ![danbjoseph](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/danbjoseph/32/21901_2.png) [@danbjoseph](https://forum.getodk.org/u/danbjoseph)\
**Post date:** [July 26, 2017, 1:24am UTC](https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198/2 "2017-07-26T01:24:54Z")

</div>

- Do you want to stop the user from editing a saved form that has been marked as completed?
  - If using ODK Collect, turning on autosend to "Wifi or cellular" might help reduce the possibility since a completed form should immediately send (if you have cellular data or are completing the forms where you have wifi) and the user should have less a chance to go back and edit the responses before upload.

- Or you want the user to only have the option to swipe forward through a survey and not swipe back to a previous question?
  - I am not aware of a way to restrict this in ODK Collect.

---

<div class="post-metadata">

**Author:** ![Vijay](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/vijay/32/2035_2.png) [@Vijay](https://forum.getodk.org/u/Vijay)\
**Post date:** [July 26, 2017, 12:39pm UTC](https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198/3 "2017-07-26T12:39:29Z")

</div>

In addition to turning on 'Auto send' you can also turn on the Collect option to 'Delete after send'.

Once the form is sent you are protected from further changes as Aggregate will not accept changed data, so perhaps having 'Auto send' on, with a cellular data plan, will create the least possibility of changes to your survey

---

<div class="post-metadata">

**Author:** ![luis\_gabriel\_Bohorqu](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/l/f05b48/32.png) [@luis\_gabriel\_Bohorqu](https://forum.getodk.org/u/luis_gabriel_Bohorqu)\
**Post date:** [July 26, 2017, 2:47pm UTC](https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198/4 "2017-07-26T14:47:59Z")

</div>

Hola compañeros de ODK

Muchas gracias por sus respuestas, mi necesidad de que el encuestador no  
pueda retroceder pantalla mientras esta haciendo la encuesta se debe a que  
hay una sección de la encuesta en la que se listan a las personas del hogar  
para que la maquina por medio de unos calculos seleccione a una especifica  
para realizarle la encuesta.  
Como el encuestador puede retroceder cambia la posición de las personas  
listadas y volver a realizar la selección pero eso no es la idea de la  
muestra probabilistica que se requiere.  
En ese orden de ideas lo que quiero es poder bloquearles esa posibilidad de  
retroceder mientras están realizando la encuesta.  
Yo trabajo el diseño del formulario en excel y tengo dos hojas una es el  
survey y la otra el Choice.

Mil gracias por estar siempre atentos.

---

<div class="post-metadata">

**Author:** ![issa](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/i/87869e/32.png) [@issa](https://forum.getodk.org/u/issa)\
**Post date:** [July 26, 2017, 11:32pm UTC](https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198/5 "2017-07-26T23:32:31Z")

</div>

Hm, that does seem like a reason not to allow going back. I don't think this is currently possible in Collect. Can you ask or train or trust your users not to swipe back? Is this a problem you already have today, or one you are afraid might occur in the future?

---

<div class="post-metadata">

**Author:** ![luis\_gabriel\_Bohorqu](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/l/f05b48/32.png) [@luis\_gabriel\_Bohorqu](https://forum.getodk.org/u/luis_gabriel_Bohorqu)\
**Post date:** [July 27, 2017, 12:03am UTC](https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198/6 "2017-07-27T00:03:03Z")

</div>

Ya se empezo a presentar y la anulacion de encuestas por este motivo es la  
que me lleva a realizar esta consulta.

Lastima que no se pueda controlar,

Mil gracias

---

<div class="post-metadata">

**Author:** ![issa](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/i/87869e/32.png) [@issa](https://forum.getodk.org/u/issa)\
**Post date:** [July 27, 2017, 12:17am UTC](https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198/7 "2017-07-27T00:17:53Z")

</div>

I'm sorry we didn't have better answers for you. Good luck!

---

<div class="post-metadata">

**Author:** ![LN](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/ln/32/1605_2.png) [@LN](https://forum.getodk.org/u/LN)\
**Post date:** [July 27, 2017, 4:10pm UTC](https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198/8 "2017-07-27T16:10:59Z")

</div>

I think it's a feature that should be considered. In fact, I believe there are a number of Collect forks that have some variant of it.

A big thing to figure out before it can be built is how the setting is applied. Is it defined at the form level for the entire form? Is it applied to a particular question such that after reaching that question enumerators can't go back? Is it defined as an admin setting that affects all currently active forms on the device?

---

<div class="post-metadata">

**Author:** ![luis\_gabriel\_Bohorqu](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/l/f05b48/32.png) [@luis\_gabriel\_Bohorqu](https://forum.getodk.org/u/luis_gabriel_Bohorqu)\
**Post date:** [July 27, 2017, 4:33pm UTC](https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198/9 "2017-07-27T16:33:24Z")

</div>

Hola Hélène

Efectivamente si se requiere solo para una parte de la encuesta, que en  
ninguno de los pantallazos donde se listan a las personas del hogar y donde  
el programa ya selecciona al encuestado puedan devolverse, en la plataforma  
que se utilizaba antes para el estudio "TESI" solo bastaba con una  
opción que era "Bloquear opción atrás", pero aquí no hemos podido realizar  
este ajustes.

Gracias y saludos,

---

<div class="post-metadata">

**Author:** ![Grzesiek2010](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/grzesiek2010/32/2881_2.png) [@Grzesiek2010](https://forum.getodk.org/u/Grzesiek2010)\
**Post date:** [September 11, 2017, 6:55pm UTC](https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198/10 "2017-09-11T18:55:25Z")

</div>

Hi guys!

I'm going to implement this feature in collect. We can implement it on three different levels:

1. Setting in Settings - related to all forms
2. Form level
3. Question level

I was talking to @LN and I should start work on the first one.

So my idea is to add a new checkbox in Settings ("Allow moving backwards in the form" - checked by default). If unchecked we should block moving backwards in all forms.

I guess we should also block editing forms. Probably the entire "edit saved forms" menu should be automatically hidden?  
Also we should block "Go to prompt" menu (or only "Go to start"/"Go to end" buttons)  
any thoughts?

Regards,  
Grzegorz

---

<div class="post-metadata">

**Author:** ![LN](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/ln/32/1605_2.png) [@LN](https://forum.getodk.org/u/LN)\
**Post date:** [October 19, 2017, 8:09pm UTC](https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198/11 "2017-10-19T20:09:51Z")

</div>

Thank you for taking this on, @grzesiek2010! The settings at the app level has been ready for some time and needs feedback before it can be integrated and released. To be clear, this is a first step and similar functionality will likely be added at the form and question level in the future. If someone wants to contribute that, it would be most welcome. The first step (and probably the most difficult one!) will be to make a proposal for how this would be indicated in the form.

For those who would like to see the code or try it out: [https://github.com/opendatakit/collect/pull/1457](https://github.com/opendatakit/collect/pull/1457)

The current implementation adds a setting in the `User interface` general settings menu:  
 ![49 PM](https://getodk.b-cdn.net/uploads/default/original/2X/8/85aeba22df98d5a14121888c18e15df95ab3aa76.jpg)

This can be shown or hidden in the "user settings" part of administrator settings:  
 ![15 PM](https://getodk.b-cdn.net/uploads/default/original/2X/1/1506ee1138174f48e54002750ebbc314f8e59f98.jpg)

When it is unchecked, the user can only move forward in a form and not backwards.

Typically organizations will want to combine this with an administrator password. They will also want to hide the "edit saved forms" button from the main screen and the "go to prompt" button from form entry. This combination of settings will ensure that users can only open a form once and can only navigate forward in it.

It's not clear to me that this setting is useful without an administrator password. That is, if an enumerator sets Collect not to allow going backwards, they can always change it again to allow it. I think it might make more sense to only allow the administrator to enable or disable going backwards, just like with the goto prompt. This would mean adding a single setting in the "form entry settings" section of administrator settings.

What do others think? @Nikhil_Patil @Dr_Jaideep_Gupte @Gunn777

---

<div class="post-metadata">

**Author:** ![luis\_gabriel\_Bohorqu](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/l/f05b48/32.png) [@luis\_gabriel\_Bohorqu](https://forum.getodk.org/u/luis_gabriel_Bohorqu)\
**Post date:** [October 25, 2017, 6:19am UTC](https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198/12 "2017-10-25T06:19:20Z")

</div>

Hola a todos

Estoy de acuerdo con @LN esta configuración debe estar en manos del administrador para que surja efecto, leí sino estoy mal que era posible bloquear el ir hacia atrás en la encuesta y que solo se pueda ir para adelante, luego de revisar en los apartes del aplicativo no encontré dicha opción, me gustaría saber si esta disponible o solo fue una mal interpretación por parte mía.

Saludos,

---

<div class="post-metadata">

**Author:** ![jruizc](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/jruizc/32/2613_2.png) [@jruizc](https://forum.getodk.org/u/jruizc)\
**Post date:** [October 25, 2017, 4:16pm UTC](https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198/13 "2017-10-25T16:16:23Z")

</div>

The option isn't available right now in the official/released ODK Collect app. However, you can try it using the code provided above by Hélène (github link)

---

<div class="post-metadata">

**Author:** ![LN](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/ln/32/1605_2.png) [@LN](https://forum.getodk.org/u/LN)\
**Post date:** [December 20, 2017, 4:10pm UTC](https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198/14 "2017-12-20T16:10:45Z")

</div>

In Collect 1.12+ there is a "Moving backwards" setting in Admin Settings \> Form Entry Settings. When an administrator unchecks this option, they can choose to also block other settings that make backwards movement possible (edit saved form, jump to question, etc). When using this setting, you will generally want to set an admin password so a user can't bypass it.

---

<div class="post-metadata">

**Author:** ![panthonyl](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/p/ecccb3/32.png) [@panthonyl](https://forum.getodk.org/u/panthonyl)\
**Post date:** [March 15, 2018, 5:16am UTC](https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198/15 "2018-03-15T05:16:07Z")

</div>

Hi @Grzesiek2010,

New to ODK but it is meeting my needs really well.

I've made use of the moving backwards check, which searching the forum I can now see is only a recently introduced feature. Perfect timig on my part!

My original need was to prevent swiping back at a question level, corresponding to where the enumerator hands the device across for the respondent to input more sensitive data for themselves.

You mentioned the possibility of implementing this at Question level. I'm guessing much in the same way Excel allows individual cells to be unprotected within a protected worksheet? Is this likely to happen or is it felt the Settings implementation will suffice for the near future?

Regards

Patrick

.

---

<div class="post-metadata">

**Author:** ![Grzesiek2010](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/grzesiek2010/32/2881_2.png) [@Grzesiek2010](https://forum.getodk.org/u/Grzesiek2010)\
**Post date:** [March 15, 2018, 8:38am UTC](https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198/16 "2018-03-15T08:38:12Z")

</div>

Hi @panthonyl

The current implementation is just an option in settings which affects all forms (and all questions in such a form). You are right I mentioned about implementing the same on a form level but currently we don't have any opened tickets for that. You can report your idea here [https://forum.getodk.org/c/features](https://forum.getodk.org/c/features) and describe what you need.

Regards,  
Grzegorz

---

<div class="post-metadata">

**Author:** ![panthonyl](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/p/ecccb3/32.png) [@panthonyl](https://forum.getodk.org/u/panthonyl)\
**Post date:** [March 15, 2018, 10:07am UTC](https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198/17 "2018-03-15T10:07:50Z")

</div>

Hi @Grzesiek2010.

Just posted at [Refinement of swiping back feature](https://forum.getodk.org/t/refinement-of-swiping-back-feature/12284).

Regards

Patrick

---

<div class="post-metadata">

**Author:** ![paul\_macharia](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/paul_macharia/32/8094_2.png) [@paul\_macharia](https://forum.getodk.org/u/paul_macharia)\
**Post date:** [September 23, 2020, 9:07am UTC](https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198/18 "2020-09-23T09:07:55Z")

</div>

Hello @Grzesiek2010, @LN,

Was the question level setting ever built? could this be customized in the xls file?

Paul

---

<div class="post-metadata">

**Author:** ![Grzesiek2010](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/grzesiek2010/32/2881_2.png) [@Grzesiek2010](https://forum.getodk.org/u/Grzesiek2010)\
**Post date:** [September 23, 2020, 9:12am UTC](https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198/19 "2020-09-23T09:12:33Z")

</div>

Hi @paul_macharia  
the answer is no, there is just an option in admin settings and this is the only way you can use it.

---

<div class="post-metadata">

**Author:** ![paul\_macharia](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/paul_macharia/32/8094_2.png) [@paul\_macharia](https://forum.getodk.org/u/paul_macharia)\
**Post date:** [September 23, 2020, 9:36am UTC](https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198/20 "2020-09-23T09:36:28Z")

</div>

Thanks @Grzesiek2010,

I am building a clinical decision support system for adolescent mental health, intimate partner violence and relationship screening and referral. The clinicians would have preferred users not being able to navigate backwards from a certain level of the survey especially when its self administered.

Maybe using the audit feature, the research team could be able to track changes. The audit feature on "track-changes" seem not to work for me in kobotoolkit, could anyone know why?

Paul

[Next page](https://forum.getodk.org/t/preventing-users-from-swiping-back-to-earlier-questions/9198.md?page=2)
