Repeat (for 2 highest) based on integer type questions

1. What is the problem? Be very detailed.

I have a set of integer type questions that ask the number of times a farmer uses a fertilizer

i.e. How many times have you used any of the following fertilizers in the last 6 months?
a. NPK ..............................
b. Sulphur ..............................
c. Magnesium ..............................
d. Calcium ..............................
e. Compost ..............................

Following this question, I would like to ask a specific group of questions regarding fertilizer Knowledge, Attitudes and Practices (KAPS). The challenging part is that the follow up KAPS questions should be asked only for 2 of the most used fertilizers (2 most used in last 6 months).

I do not know how to go about this and would really appreciate the support of community members in helping me learn how to address this challenge.

2. What app or server are you using and on what device and operating system? Include version numbers.

I am using ODK Collect 1.24.1, XLSForm (xls)

3. What you have you tried to fix the problem?

4. What steps can we take to reproduce the problem?

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

Hi @Louis_Omoya

Please check the sample form I prepared: testTwoMax.xls (10 KB)
would that work for you?