Add a YouTube Widget
About this task
Use the YouTube widget to embed a YouTube video directly within your
app.
Note: The Video Player widget
is recommended in place of the YouTube widget for new apps. Future versions of
SOTI Snap may not include the YouTube
widget.
Procedure
- In the Canvas, open the Widgets tab.
- Double-click or drag and drop the YouTube widget onto the app canvas.
- In the YouTube Properties panel, enter a name for the widget in the Name field.
- Click New Video to open the Insert YouTube Video dialog box where you can enter the URL for a YouTube video. You can also search for a video directly from the dialog box using keywords or the video ID.
- Select the video and click Insert.
- Optional:
Add a visibility rule to the widget.
Use visibility rules to control when a widget is visible to the app user. For example, you can create a condition that a widget should only appear after the app user fills in a field or submits a form.
- Select Visibility Rule to open the Set Visibility Rule dialog box.
- Select whether the visibility rule requires meeting all or any conditions.
- Select an app field or variable and an operator from the Field list. Enter the value required for the widget to be visible.
- Select Add Condition to add another condition.
- Select Save.
- Move to the Format tab to customize the widget's appearance.
-
Select Save in the SOTI Snap
banner to apply your changes.
Results
Tip: Select Preview to see how the widget
appears in your app.