Hi all,
I want to hide right chevron in carousel until an option is selected, and I want this to happen at each carousel card. I was able to write a JavaScript code but it only seems to be working for first carousel card.
Can anyone help me here? Please!
I tried using ChatGPT, but the code it generates isn’t working.
Here is the code:
Qualtrics.SurveyEngine.addOnload(function () {
var q = jQuery(this.questionContainer);
// Hide the right chevron once at the start
var rightChevron = q.find(".CarouselCardRightContainer .CarouselChevronContainer");
rightChevron.hide();
// Add click listener to each CarouselAnswerButtonContainer
q.find(".CarouselAnswerButtonContainer").each(function () {
jQuery(this).on("click", function () {
rightChevron.show();
});
});
});