# Enhancing Questionnaire Experience: Preventing Blank Input, Validating Integers, and Streamlining User Interaction

**URL:** <https://discourse.psychopy.org/t/enhancing-questionnaire-experience-preventing-blank-input-validating-integers-and-streamlining-user-interaction/35285>\
**Category:** Online experiments\
**Created:** [June 7, 2023, 6:37am UTC](https://discourse.psychopy.org/t/enhancing-questionnaire-experience-preventing-blank-input-validating-integers-and-streamlining-user-interaction/35285 "2023-06-07T06:37:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon.dp](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/simon.dp/32/6313_2.png) [@simon.dp](https://discourse.psychopy.org/u/simon.dp)\
**Post date:** [June 7, 2023, 6:37am UTC](https://discourse.psychopy.org/t/enhancing-questionnaire-experience-preventing-blank-input-validating-integers-and-streamlining-user-interaction/35285/1 "2023-06-07T06:37:32Z")

</div>

URL of experiment:

> **[Simon Del Pin / miniIPIP](https://gitlab.pavlovia.org/DelPin/miniipip)**
>
> Sign In/Register

Description of the problem:  
I am trying to start my experiment with a series of questionnaires and have found a functional solution. However, I would still like to improve on it if possible. The biggest issue is that people can press continue by accident before giving input. I want to limit it so that people cannot continue if the input is blank.  
Additional nice things would be to only allow them to continue if they have inputted an integer (perhaps only in a certain range such as 0-4).  
Also, it would be nice if they could press enter rather than having to use the mouse. I have other parts of my experiment where people simply input a simple digit from 1-5 but that won’t work here as I will display Ishihara colourblindness tests that require people to enter 2 digits.

> [@Use a text response and submit only when something is typed](https://discourse.psychopy.org/t/use-a-text-response-and-submit-only-when-something-is-typed/16525/1):
>
> Hello, I’m a beginner on psychopy and i’m following several tutorial. But I have a question today. From the builder, how can I include a text response, that is the stimuli appear (that’s ok) and participants need to write some text and click on “space” or “enter” to go to next trial ? Thanks for your help KB

I have looked through this topic which seems to cover similar issues, but either something has changed in psycohpy or else I have just been unfortunate in getting the example to run online (it works locally).

Thanks for reading
