How to prefill a select_one question based on the previously selected select_multiple question?

hi namaste

This is My Problem how to solve.
Two Question Q1 multiple five option and Q2 Single option Q2 Only three option if Q1 count 3 Q2 select-1, Q1 count 1 or 2 Q2 select -2 and Q1 None of the above select Q2 select 3

select_multiple OpDiabetes_received Q1 How does the patient understand the information received on diabetes ?
select_one OpDiabetes_Score Q2 information received on diabetes (Score)
OpDiabetes_received 1 Symptoms/signs
OpDiabetes_received 2 Risk factors
OpDiabetes_received 3 Complications
OpDiabetes_received 4 Lifestyle self-management
OpDiabetes_received 5 Medication management
OpDiabetes_received 6 Where to seek help
OpDiabetes_received 7 None of the above
OpDiabetes_Score 1 Well, knows at least three of symptoms/signs, risk factors, complications, lifestyle self-management, medication management, where to seek help
OpDiabetes_Score 2 Somewhat, could only mention one or two of the above
OpDiabetes_Score 3 Not well at all / has not received information

@bikky2044, you should be able to do it as outlined in the image shared below:

In the survey tab of your XLSForm:

In the choices tab of your XLSform:

Data entry screen as seen in Enketo: when nothing is selected in Q1

Data entry screen as seen in Enketo: when any two choices are selected in Q1

Data entry screen as seen in Enketo: when any three choices are selected in Q1

Reference XLSForm:

PreFill.xlsx (13.5 KB)

Thank you for your information
My Next problem
I have faced a problem. As a multiple question 6 option, 5 must be selected. How can you choose other Specify options or not ?
Multiple_option.xlsx (13.4 KB)

@bikky2044, you can play around with the if-statement that I have designed in my previous post.

Thank you i will try.

1 Like