Page 1 of 1

Multiple response

Posted: April 2nd, 2022, 1:14 pm
by sham
Hi family,
I have multiple choice question variable and i need your support for this logic;
example

Q1. Select the best 3 or up to 3 crops in the following crops types (Multiple Reponses is allow)
A. YAM
B. Rice
C. Bean
D. Cassava
E. Millet

How do I restrict to allow the enumerator to select a maximum of 3 options.?

Thank you.
Sham

Re: Multiple response

Posted: April 2nd, 2022, 1:25 pm
by etuser
Declare Q1 as an alpha with a length of 3 and make it checkbox to accept multiple response

Re: Multiple response

Posted: April 4th, 2022, 9:31 am
by htuser
A better way, in the postproc
if length (strip ($)) >3 then
    errmsg
(239);
    reenter $;
endif;
239 You can't select more than three crops. Please, reenter Q1.

I don't test if the reenter will work right now. Please test it.
Hope this help.