Good morning everyone,
I couldn’t find any solution, because of that now we don’t have storeEval as a exist command in Kantu.
So, does enyone know how to replace one string inside variable?
BTW it is not a problem with string but with any char inside of variable.
I store date in var “10.09.2020” and I want to delete every single dot and my output should be: “10092020”.
I tried many solutions but finally I get same error:
- [error]
Line 24: Error in executeScript_Sandbox code: unexpected token: numeric literal
Part of the code:
"Command": "store",
"Target": "${!COL4}",
"Value": "Myvar"
},
{
"Command": "executeScript_Sandbox",
"Target": "\"var str = ${Myvar}; return str.replace(/./g,\\\" \\\");\"",
"Value": ""
In the next step I try to fill next field by the replaced date, must be string.
Can you help me with that?