Numeric box and choose one in same qustion

What is the problem? Please be detailed.
I want to put numeric box and choice button in the same question.


Q. What is your Age?
a numeric box and a choose button which contain "don't know" should be display

What ODK tool and version are you using? And on what device and operating system version?

What steps can we take to reproduce the problem?

What you have you tried to fix the problem?

Anything else we should know or have? If you have a test form or screenshots or logs, attach here.

Hi @sanish_shrestha

such a widget doesn't exist. Maybe a good solution is to use two separate widgets but on the same page (a group with field-list appearance).


Something similar was discussed HERE, where a work around option is provided. Hope this helps.

Hello friends,

If I write age number in field box then "don't know" should not be select or if I select "don't know" then we should not write any number in field box
So, how can we wrote that logic?


One option is to create a constraint on the age question such as .<125 or .=777 or .=999 and provide instructions for your enumerator (e.g. with a hint) to "enter 777 if the respondent does not know or 999 if the respondent prefers not to answer".