String manipulation in client scripts
I don't know what is going on with client scripts.
ZOHO has so many "almost there things" that you have to resort to so many workarounds... the latest one I found is client scripts.
So I have been trying to work with it, I wrote a short script
var deal = ZDK.Page.getField('Deal');
var dealName = deal.getValue();
log("dealName", dealName);
var test = dealName.toString().toLowerCase();
log("test", test);
It should be self explanatory, deal gets the value correctly and I can print it.
Now say I wanted to do any kind of string manipulation, like make the string lowercase... and print it...
Do you know what gets printed there?
[object object]
What kind of hell is this? why is it so complicated?