There is an app has Text fields "revenue_text"(content is "223") and "cost_text"(content is "100"),I would like to get profit in a calculation field by code below:
but ,there are error messages :
1."the result is not a valid number "
2."invalid value 123.0（number）:must be string"
what's wrong with it ?
My purpose is to get string from text field ,then turn it into number in calculation field .
It seems the calculation field is text type instead of number type which is wanted by me .
How can I make it ?
The script as follows:
var a=@revenue_text ;
var c= parseFloat(a);
var d= parseFloat(b)
Please sign in to leave a comment.