Multiple choice question

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
kdar
Posts: 2
Joined: April 3rd, 2014, 4:54 am

Re: Multiple choice question

Post by kdar »

Many thanks Gregory for your logic for multiple response. I have tried it it did work now.

regards,
kedar
dinvictor
Posts: 5
Joined: February 19th, 2016, 4:40 pm

Re: Multiple choice question

Post by dinvictor »

Adnane wrote:Here is an example where you can learn from it.
Hi, I've tried to create the Maternal roster/grid in a new form or delete it from original and recreate it. I cannot figure out how this grid was created. Maybe directly in .fmf ? Thanks.
dinvictor
Posts: 5
Joined: February 19th, 2016, 4:40 pm

Re: Multiple choice question

Post by dinvictor »

Thanks for your reply, but the example link is missing;
dayom4real
Posts: 4
Joined: August 23rd, 2017, 5:24 pm

Re: Multiple choice question

Post by dayom4real »

Plz can anyone guide me on how to make None to be exclusive in a multiple response value set?
sah
Posts: 97
Joined: May 28th, 2015, 3:16 pm

Re: Multiple choice question

Post by sah »

There are many ways to address this either as a function or as logic on the variable. Below is a demo as a function for your perusal

Code: Select all

function noneCheck(String XNone, string char)
	numeric response= length(strip(XNone));
	if response >1 and pos(char, XNone)then 
		errmsg("Cannot select None(X) with other options");
		reenter;
	endIf;
end;
So if your multiple response/choice variable is VariableA this is how to invoke the function:

Code: Select all

Postproc

 noneCheck($,"X");
 
Post Reply