Good day. I have a page that has a video uploaded. My problem is I need the users to watch the video before they can proceed to the next page. Is there any way to this? Thank you.
1)In your form->Properties->Paging include->set it to No.
After that on every form's page add new element->Submit button->and name it: Next page (Title), nextpage(Name), Next(Value).
On this button->Advanced->Actionscript->check Library->check Click->and as script select ff_next page. Don't forgot to add this button on each page, because this acts Next button
2) in you page in which is video add id of your video.
e.g (this is my code for video):
<video id='myvideo' #videoplayer controls (ended)="videoEnd()" style="width: 600px;" >
<source
src="https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerEscapes.mp4"
type="video/mp4">
Your browser does not support HTML5 video.
</video>
As you can see id of this video is 'myvideo'. As I said in step 1) add submit button as next button on this page too.
3) go to your form->Advanced->More options->Scripts->Initialization script->check Custom:
function ff_example2311_init()
{
setInterval('myV()', 500);
} // ff_example2311_init
function myV() {
var myVideo = document.getElementById("myvideo");
if (myVideo.played) {
jQuery('#ff_elem24163').prop('disabled',true);
}
if (myVideo.ended){
jQuery('#ff_elem24163').prop('disabled',false);
}
}
Please replace #ff_elem24163 with ID of button which is located on page on which is video. (you can find this ID with right click to your browser->Inspect)
myvideo is ID of video from step 2)->replace it with your video id.
I hope I explained the steps well and did not confuse you
Whenever I tried to save the page after copying your code for the video the code always revert to this:
<p><video id="myvideo" style="width: 600px;" controls="controls">
source src="videos/orientation.mp4" type="video/mp4" />
Your browser does not support HTML5 video.
</video></p>
Update:
I followed your instructions but the button were not disabled. Please see the attached for the screenshots of the settings.
We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.
How to receive the discount:
Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!