Actions

QS

QS:Exclusive option

From LimeSurvey Manual

Revision as of 16:38, 20 February 2018 by Cdorin (talk | contribs)


Description

The exclusive option attribute takes the code of an answer in a multiple option question so that when clicked on the its corresponding checkbox, all the other previously checked options will get unchecked and get marked as read-only (=disabled). This function was created to ensure data integrity when one of the multiple options in a multiple option question implies that no other option can be selected too. Basically, this feature marks the other attributes as being irrelevant.

It is also possible to have multiple exclusive options. These must be separated by semicolons.

Example

For a short explanation on answer codes, check first the following wiki section. Once understood, introduce the "AnswerCode" that will trigger the function once selected.




Below, you may see an example where exclusive option is used.

In the first screenshot, you can see that more non-LimeSurvey options have been selected:



If you click on the marked option (see above), the other options will be disabled and you will be left only with the current option checked:



To take a closer look to our example, import the .lsq file into your LimeSurvey installation: File:Example exclusive option question.zip.