@Marzio you can check:
If you need to use some dynamic value inside a javascript script:
<dmx-value id="var1" dmx-bind:value="'hola'"> </dmx-value>
<script>
function mostrarvar1() {
var var1 = dmx.parse('var1.value');
console.log(var1);
}
</script>
Then you'll see:
Get a value from a script:
<script>
function hello() {
var hola = 'hola2';
dmx.app.set('valor', hola);
}
</script>
<p>{{valor}}</p>
Then:
Remember timing is important on javascript and values, you can use a flow with no auto load
and use a dynamic success event of a server connect, then the flow can execute your function with the values correctly "loaded".