In this section, we will talk about the following cases:
Case 1 Hide images as answers
Let’s say you need to create a matrix with brands(images) as columns, and attributes as rows.
This will most likely show an image in each field of the question. In order to hide the images, copy the following code to the top of the code:
let images= document.querySelectorAll("tbody > tr > td > div > div > label");
images.forEach(imagen => {
if(imagen.querySelector('img')) {
imagen.querySelector('img').classList.add("d-none")
}
});This is the survey ID / question code used for reference:
989665 / Q5