I have a form where I would like to enter some calculated data in a field. The field is set as type=“numbers”.
When I use this, it works:
{
“Command”: “type”,
“Target”: “id=field_1234”,
“Value”: “123”
}
When I use this it doesn’t:
{
“Command”: “type”,
“Target”: “id=field_1234”,
“Value”: “$(MyVariable)”
},
I thought is was because it was a calculated field which was considered an integer and not a string so I also converted it to string. But both don’t work.
This is the calculation:
{
“Command”: “executeScript_Sandbox”,
“Target”: “var s = ${!LOOP}; var t =(1000+(s*50));var u =t.toString(); return(u);”,
“Value”: “MyVariable”
}
Anyone has a clue what the problem could be?
Thanks!