# Dynamic User Content

<figure><img src="/files/Ofia7GAGNdpQuOdOaagd" alt=""><figcaption></figcaption></figure>

based on clicks, you can seamlessly  swap or change video content, with this simple snippet

```javascript
async ({ data, inputs, element, event, player, jumpTypes }) => {
  // Fill in data field name (dataField1), and after that the content you want to push into it ("data content1")
  data.dataField1 = "data content1";
    data.dataField2 = "data content2";

  
    return {
    // Fill in the new scene lineup, after the user clicks the button.
    scenes: ["sceneName","sceneName2"],

    // both optional. pre fill with the non-advanced config, when switching to advanced
    jumpType: jumpTypes.sceneStart,
    jumpValue: "sceneName",
    data
  }
}
  
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.blings.io/creator/studio/custom-elements-advance/dynamic-user-content.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
