Expand my Community achievements bar.

Public Function

Avatar

Former Community Member
How Create a public funcion in adobe designer?



what is syntax?



and where?

I have function Word()



thanks
2 Replies

Avatar

Former Community Member
If you are using the JavaScript language:



> function sum(num1, num2){return (num1 + num2);}



Then, you can invoke the
'sum' function from anywhere:



> var r = sum(2+3);



Sometimes, you'll need select the
"Insert Script Object" option from the context menu that appears when you right-click over the form name in the
Hierarchy View.



When a new
Script Object has been added, it will be visible at the end of the hierarchy list inside of
'Variables' group. Put your global functions here if you want to use them from anywhere in the form.




Good luck,

Dan