Page 2 of 2

Re: Multiple choice question

Posted: April 9th, 2014, 3:48 am
by kdar
Many thanks Gregory for your logic for multiple response. I have tried it it did work now.

regards,
kedar

Re: Multiple choice question

Posted: February 19th, 2016, 4:52 pm
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.

Re: Multiple choice question

Posted: March 29th, 2016, 6:27 am
by dinvictor
Thanks for your reply, but the example link is missing;

Re: Multiple choice question

Posted: August 23rd, 2017, 5:39 pm
by dayom4real
Plz can anyone guide me on how to make None to be exclusive in a multiple response value set?

Re: Multiple choice question

Posted: August 23rd, 2017, 6:01 pm
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");