You can’t directly change the HTML of iFrame with Velo APIs.
But there are some workarounds you can try.
- Creating an API endpoint to return HTML code and use this API endpoint with .src API.
- Using a GitHub repo to store HTML code and use raw files from this GitHub repo to pass to .src API.
- Inserting HTML code using postMessage API of iFrame. (Works with onMessage API)
- If your HTML is something simple you can also use a text element. And use .html API to pass HTML code in it.
These are the workarounds (I know/remember) you can try.