Permitting responses only in proportions

Hello!

I am trying to create a question on visual acuity, the response has to be captured in proportion within permissible range from 6/6 to 6/60. I can do it using text question but how to restrict the response so avoid data entry errors.

Thanks!

Welcome back to the community @peeyush! Could you provide more information and some restriction criteria so that we could have a look at it and see if it’s possible through KoBoToolbox.

Hello,
Just an idea. You might also set a default 6/. in this textfield. And add a hint for the entry format.

Hi
I believe you can solve your issue by using the regex function as explained here

To execute the following

I would recommend
regex(., '^6/([6-9]{1}|([1-5]{1}[0-9]{1})|60)$’)

Your constraint could be “Your entry can only be permissible range from 6/6 to 6/60”

This limits the entry to what you expected


image
image
image
image

Stephane

2 Likes