Wappler Version : 2.8.4
Operating System : Mac OSX Catalina v10.15.3
I believe @JonL raised this bug and was closed and hidden from the forum. Looks like multiple args was fixed, the other two below bugs are still unresolved:
When calling RunJS in inline-flow (page-flow works fine),
- the UI way still misses adding a closing quote to the first arg. I had to manually add it in code to fix it
- the binded values are not getting printed
Here is an example, I have two variables and I’m trying to call on body load, a JS function (inline flow) which console prints both variables.
<body is="dmx-app" id="test" dmx-on:load="run({
runJS: {
function: 'test',
args: ['`var_test1.value`, '`var_test2.value`'],
name: 'test'
}
})">
<div class=" container">
<dmx-value id="var_test1" dmx-bind:value=""hello""></dmx-value>
<dmx-value id="var_test2" dmx-bind:value=""world""></dmx-value>
<script>
function test(test1, test2) {
console.log(test1 + ', ' + test2);
}
</script>
</div>
</body>
Community Page
Last updated:
Last updated: