Inline-flow: RunJS - data binding & closing single quote issues

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="&quot;hello&quot;"></dmx-value>
	<dmx-value id="var_test2" dmx-bind:value="&quot;world&quot;"></dmx-value>

	<script>
		function test(test1, test2) { 
				console.log(test1 + ', ' + test2);
			}
	</script>

</div>
</body>

1 Like

I tried enabling experimental features, but that didn’t resolve the above issues.

This also happens to me.

You can use the right syntax in code but if you save via flow edit UI it will mess up single quotes.

Just a follow-up, if this was fixed at all @George ? Thanks!

Yes this is fixed already indeed

1 Like

This topic was automatically closed after 3 days. New replies are no longer allowed.