Hi @da666,
Here is a demo on how to do this:

In this demo, we'll use data collection colItems set in the screen's OnVisible property:
ClearCollect(colItems,
{
ID:1,
Name:"Dog",
Selected:true
},
{
ID:2,
Name:"Cat",
Selected:true
},
{
ID:3,
Name:"Rabbit",
Selected:false
}
);
The gallery control (galItems) has the Data source property set to colItems (above).
The HTML text control (htmlText) has the following code for the HTML text property:
Concat(galItems.AllItems, $"<input type='checkbox' {If(Selected, "checked")}>{Name}", "<br>")
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Follow me online.