I am having a watch video button which shows a YouTube video in color box. I want to show a form (webform/custom form) to appear after the video ends in the same color box itself. If users fill the form and submit it, the form should disappear, showing only the video that was ended in the colorbox. I am trying to achieve it using using the Youtube player API but not able to achieve my objective.
Is there some other way to achieve it?