Ray
April 22, 2021, 5:01pm
1
I am sending data from a frontend flow to a custom JS function:
{runJS:{function:‘setinnerHtml’,args:[‘editjamdescription’,’getclass.data.query.jamdescription
’]}}
and then in the function if run
var inprocessed = dmx.parse(val);
and the result is in double curly brackets unstead of the value:
inprocessed {{getclass.data.query.jamdescription}}
How do I get the value?
JayP
April 22, 2021, 5:14pm
2
A tutorial on how to use dmx.parse on JS code would be most useful! +1 vote
1 Like
Ray:
This looks like a bug that was reported a couple months ago, where single quotes are wrapped around the back ticks. Seems to be happening on your second argument -- try removing the single quotes and leave the back ticks.
Wappler Version : 3.7.6
Operating System : Big Sur
Server Model: PHP
Database Type: MySql
Hosting Type: AWS Docker
Expected behavior
What do you think should happen?
Adding bound data to inline flow RunJS action should not encapsulate in single quotes
Actual behavior
What actually happens?
The following binding was made using the data picker:
[image]
As you can see the runJS argument adds the binding as a string and causes the action to fail.
How to reproduce
Detail a step by s…