Can I hide next button until my video is watched for 30 seconds? | XM Community
Skip to main content
Solved

Can I hide next button until my video is watched for 30 seconds?

  • July 16, 2021
  • 2 replies
  • 109 views

I have a video in my survey (uploaded to survey with "Insert Media" option) and I want respondents to watch the video at least 30 seconds before they can see the next button. I can hide the button for 30 seconds using timing question but it does not consider whether the video has been watched for 30 seconds. Is there any JS code for this problem?

Best answer by ahmedA

Use the video's onplay method and then use it to display the next button after 30 seconds.

2 replies

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • Answer
  • July 17, 2021

Use the video's onplay method and then use it to display the next button after 30 seconds.


  • Author
  • July 18, 2021

Thank you very much ahmedA. I am quite new to java so I'm not familiar with the onplay method. Do you mean a specific script to put on the onReady part?