Single answer value in multiple answer question.

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
Cesavhi
Posts: 10
Joined: March 25th, 2018, 12:10 am

Single answer value in multiple answer question.

Post by Cesavhi »

Hello All, Good evening,

So i try to make this type of question :

1. What do you plan to do in holiday (string 5)
a. playing games
b. netflix
c. hiking
d. sleep
e. none of the above.

when option e is selected, no other option can be selected and when a,b,c,or d selected then e shouldn't be able to be selected as well. i try to fill the e option value with full EEEEE instead of one E. but that will make the checkbox-capture type won't appear. Any suggestion how to make this work ?
Any advice would be appreciated.

Regards,

Ces.

ps : i attach the file to make it clearer
Attachments
singlevsmulti labs.rar
(4.31 KiB) Downloaded 169 times
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Single answer value in multiple answer question.

Post by Gregory Martin »

The way checkboxes work in CSPro, you won't be able to get EEEEE for "none of the above" because then CSPro will think you need five characters per checkbox field, and it only allows checkboxes for fields where all of the items are of the same length. If you really need EEEEE, then I would suggest that you change this value in a post-data collection edit.

The other issue is easier:
if pos("E", A1) > 0 and length(strip(A1)) > 1 then
    errmsg
("You cannot select None with any other option");
   
reenter;
endif;
Cesavhi
Posts: 10
Joined: March 25th, 2018, 12:10 am

Re: Single answer value in multiple answer question.

Post by Cesavhi »

Thank you so much sir Gregory..
Post Reply