How can I trigger SideBySide display logic without having to go to the next page? | XM Community
Skip to main content

How can I trigger SideBySide display logic without having to go to the next page?

  • January 4, 2023
  • 3 replies
  • 20 views

Forum|alt.badge.img+1

Hello! I'm hoping someone has a solution for this issue. I'm using the "side by side" type question for respondents to list/describe specific events. I want to hide rows 2, 3, etc. if the "add another event" button is not selected. I did the display logic, but the logic is not triggered unless I go to the next page and then go back to this question. Any help is appreciated. Thank you!
image.png




3 replies

grahulp5
QPN Level 3 ●●●
Forum|alt.badge.img+13
  • QPN Level 3 ●●●
  • January 4, 2023

For this you will need to use javaScript's "onClick" function to hide and show the rows based on the previous selection.


Forum|alt.badge.img+1
  • Author
  • January 4, 2023

Do you happen to have an example of a javascript I can use? Sorry, I just don't have a lot of knowledge regarding this. Thank you!


grahulp5
QPN Level 3 ●●●
Forum|alt.badge.img+13
  • QPN Level 3 ●●●
  • January 5, 2023

It should look something like below:
jQuery('.q-radio').onClick(function(){
  //display the next row
      }