How to show a video based on the selected option

  • obua226
    3 Eylül 2024 14:55 tarihinde soruldu

    Hello, I want to play multiple choice videos on my form page. When the user selects option A, I want video A to play, when the user selects option B, video B to play. How can I do this?

  • Rhina Jotform Support
    3 Eylül 2024 17:27 tarihinde yanıtlandı

    Hi Oguz,

    Thanks for reaching out to Jotform Support. You can show a different Youtube widget video based on the users selection using the Show or hide conditional logic. Let me show you how:

    1. In Form Builder, click on the Add Form Element menu and drag-drop the Single choice field. 

    2. Click on the Type a Question text and change it to the question you want to use. Then add the available option selections. How to show a video based on the selected option Image 1 Screenshot 60

    3. You can then add the Youtube widgets depending on the number of options. 

    How to show a video based on the selected option Image 2 Screenshot 71

    Now, let's set up the conditions:

    1. In Form Builder, in the orange navigation bar at the top of the page, click on Settings.

    2. Click on Conditions on the left of the page.

    3. Now, click on Add a New Condition and then click on Show/Hide Field.

    How to show a video based on the selected option Image 3 Screenshot 82

    4. Set the conditions like you see below:

    How to show a video based on the selected option Image 4 Screenshot 93

    How to show a video based on the selected option Image 5 Screenshot 104

    You can check out the demo form here. You can clone this form and edit to your preference.

    Give it a try and let us know how it goes.

  • obua226
    4 Eylül 2024 04:31 tarihinde yanıtlandı

    I will try it and get back to you thank you very much