Page 1 of 1

Help!!! CHECKBOX

Posted: March 3rd, 2016, 3:57 am
by rcovane
I'm trying to make a checkbox option to admite three answers. The problem is I have a set of answers and the clerk is supposed not to read them but let the interviewee say it and the clerk regist the answers. The solution I found is to make checkboxes so the clerk don't have the problem of moving forward and backward. But I have three possible answers for that:
  • Big;
  • Small;
  • and No answer
the solution I thought was to use

Code: Select all

accept
:

Code: Select all

//setting the values for the questions
if pos("A", P32) <> 0 then
	if accept("This advantage is big or small?","Big","Small")=1 then P32_1 = 1
	else P32_1 = 2;
	endif
else P32_1 = 9;
endif;
The file with the is here
Dealing with checkbox with trhee answers.zip
(5.15 KiB) Downloaded 286 times

Re: Help!!! CHECKBOX

Posted: March 3rd, 2016, 4:44 am
by MrTaco
Hi,

try this:

if poschar("1",P32) = 1 then
P32_1 = 2;
else
P32_1 = 9;
endif;

Re: Help!!! CHECKBOX

Posted: March 3rd, 2016, 6:05 am
by rcovane
tshetlho@hsrc wrote:Hi,

try this:

if poschar("1",P32) = 1 then
P32_1 = 2;
else
P32_1 = 9;
endif;
Thank you, it worked a bit as I expected. Is there a way that I can do it opens the pop-up window just when I select the option?

I'm combining with accept and it does what is supposed to do!

Re: Help!!! CHECKBOX

Posted: March 4th, 2016, 1:51 am
by Saint
I have slightly edited your application in the attached and hope it does what you intend to do. The questions making up the overall should be defined as sub-items, not as items on their own. Best...