How to find the “identity" of the choice options in the multiple choice quetion? | XM Community
Skip to main content
Question

How to find the “identity" of the choice options in the multiple choice quetion?


Forum|alt.badge.img

Hi Guys. In my survey, I need some events to function if participants click on a choice option. I know how to write the code for the trigger event. However, I could not find the identity of the choice box. For example , in the following screenshot. I could make the code listen to the text ”apple". But preferably I would like the function to be triggered when participants click on anywhere in the box.

how should I find the "id" of the blue box? I guess this should not be that hard, but I could not find it in the HTML code. I would appreciate any help here. Thanks!


example.PNG

3 replies

mklubeck
Level 3 ●●●
Forum|alt.badge.img+8
  • Level 3 ●●●
  • 233 replies
  • July 2, 2021

I'm confused. isn't clicking anywhere in the blue box mean they selected "Apple?" Why doesn't using the selected choice option work?


Forum|alt.badge.img
  • Author
  • 6 replies
  • July 3, 2021

https://community.qualtrics.com/XMcommunity/discussion/comment/38805#Comment_38805Thanks for your reply, Yeah, I would like to use "hover" (or anytime when they move the mouse inside the box) event instead of "click" event. I try the Qualtrics, there is "this.questionclick" available, but it seems there is no API for the "hover" event. So I want to use Jquery with the hover, but then I need to locate the box as the target of the Jquery.


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • 2031 replies
  • July 3, 2021

Right click -> inspect element.


Leave a Reply