The zoom selection is optimised for selecting between images - it displays all selection options as tiles. As soon as an option has been selected, this option is displayed larger than the other cards.
The magnification factor is defined in the question. By default, selected options are displayed approximately twice as large as the initial size. The unselected options are also reduced by a factor of 2. However, the exact size depends on the available width in the questionnaire and the display (single or multi-line).
The zoom selection has two properties:
value
– The code of the currently selected option.readonly
– If readonly
is set to true
, selection is no longer possible.Please note that the JavaScript instance for a zoom selection is only available after the questionnaire page has been loaded. In the following example, option 2 is selected (after loading the page) and then prevents respondents from being able to select a different value.
window.addEventListener("load", function() { // Select option 2 s2.AB02.value = 2; // Prevent respondents from changing the selection s2.AB02.readonly = true; });