I know how to convert a string to a number (parseInt, parseFloat, Math., + Number() etc.).
But this all doesn't work in a PODIO calculation field with a string from a PODIO text field (single line and multi line, and also not from a text type calculation field). Text in textfield: 123
var str = @textfield;
Number(str)
Also when I tried with parseInt(str) etc. result is always the error msg.: Not a valid number.
It works e.g when str = "123", but not when I want to use the token @textfield. It works also when str is a category field token (and categorie is 123).
Any suggestion how I can convert a string to a number using a @textfield token?
TIA Rainer