How to dynamically update HTML element

Given I have some sets of HTML code in DB fields or Option Sets, can I dynamically update the HTML element on my page based on different states?

I’m trying to do this at the moment and while I can get the HTML code into the HTML element, and update it based on states, the HTML element does not re-render ?

In my case, it rerenders. Maybe there is another issue in your project. See below:

chrome_51WhqpE8nB

I have two HTML text in a data type and set the current custom state to the page and display it.

1 Like