1. I initialize a variable in start node:
calcDates (string) = ""
2. Then init the variable in an assign node (script):
calcDates=function(freq){
doDateLogicHere freq
}
3. need to call the function from another line in the init (assign) assign node.
calcDates('Tuesday')
Trouble is, I get an eval error:
"Error evaluating expression: calcDates(frequency)"
Error evaluating expression: calcDates(frequency)
Hi Tim.
Try this on the Start Node:
Trust me, it works.
Step one- Create the variable as xml and declare the function as you would declare any function in javascript
Step two- Call the function anywhere in the flow as you would call any function, say calcDate('Tuesday'). That's it.