Script Actions: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 15: Line 15:
To create arguments:
To create arguments:
# Open the script edit card, move to tab arguments, and click +.
# Open the script edit card, move to tab arguments, and click +.
# To get the values of the arguments, use function arg(argumetn name). The type of the result depends on the type of the arument, and is similar to the field() function for an entry.
# To get the values of the arguments, use function arg(argumetn name). The type of the result depends on the type of the argument, and is similar to the field() function for an entry.


== Functions and objects available for the script ==
== Functions and objects available for the script ==
Script actions can use the same objects and functions as trigger scripts. If the script is in the Entry context, then it can use function entry() to get the current entry.
Script actions can use the same objects and functions as trigger scripts. If the script is in the Entry context, then it can use function entry() to get the current entry.

Navigation menu