I added a new javascript (create drop down) and put the following function in it:
function(addNumbers){
return 1+1;
}
I called the javascript object "addNumbers' without the quotes.
In a button on a screen I added a click handler and selected Run Custom JavaScript; I put the following for the javaScript:
var x = addNumbers();
alert(x);
But when I test and press the button nothing happens.
How do I call my custom function?
Also if I put 'alert' in the function, will that work (once I know how to call the function?)
Thanks.