Tap Forms – Organizer Database App for Mac, iPhone, and iPad › Forums › Script Talk › Print or alert?
I am trying to debug a script. How can I print or show an alert?
You can use console.log() to output variables and text to the console:
console.log()
console.log(var); console.log("text");
Depending on the object, you might want to use console.log(JSON.stringify(var)).
console.log(JSON.stringify(var))
To create an alert, use Utils.alertWithMessage('Script Run Complete!', 'Cool!!!!!');
Utils.alertWithMessage('Script Run Complete!', 'Cool!!!!!');
Hope this helps!
Thanks! That worked like a charm!
You must be logged in to reply to this topic.
Log in / Register