Can a data source be set programatically within bubble UI elements?

Can a data source be set programmatically using Javascript within bubble UI elements? For example an image or text element.

Hey, Shaun! What are you trying to do? Bubble has workflow events and conditions which can dynamically change the element’s data source so you shouldn’t have to set anything with Javascript.

The data source value for my UI element button is based on the website url of the end user

1 Like

Would this work?


or this
image

1 Like