Only one option will be selected and the response will be numeric

I need help with this question also… Only one option will be selected and the response will be numeric. How to do that?

Question. What is the longest length of time you stopped using tobacco because you were trying to quit?
[mention the number in the provided space]
Months __________
Weeks __________
Days __________

Do you mean only one of the answers can be fed to this question (Months, Weeks, and Days)? Say if an enumerator answers an integer value for Weeks the question should pass on, and the enumerator is not compelled to answer the value to Months or Days?

Feel free to correct if my understanding is wrong to what you require.

Yes, you are right. pls help

@Varsha, there are different ways to do it. Among them, one approach is shared below:

In the survey tab of your XLSForm:

Data entry screen as seen in Enketo: when nothing is entered

Data entry screen as seen in Enketo: when only a single value is entered

Data entry screen as seen in Enketo: when only a single value is entered, and the other values are ‘0’

Data entry screen as seen in Enketo: when more than one values are entered

Reference XLSForm:

Only one variable accepted.xlsx (10.5 KB)