CAWI - How to Display Videos in Questions


This guide will describe how to display videos in questions running on CAWI


To display videos in CAWI the video will need to be hosted outside STG, for example YouTube. 

Once the video is hosted outside the STG follow these steps:

  1. In the start script of the question you want to display the video in add this code -  SetTextFormat(CurrQues, "<iframe width=100% height='300' src='' frameborder='0' allow='autoplay; encrypted-media'></iframe>");
  2. In the src='' - paste the link where the video is located  
  3. In the Question text add the piping place holder {0}
  4. When running in the web the video will be displayed in the question

That's It !

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request



Please sign in to leave a comment.