Write, Bureaucrats, Administrators
4,332
edits
mNo edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
'''''[[This page is incomplete, incorrect, in the midst of translation, and under development.]]''''' | '''''[[This page is incomplete, incorrect, in the midst of translation, and under development.]]''''' | ||
A Trigger is a script that | A Trigger is a script that initiates certain actions or events. Trigger scripts are written in [https://developer.mozilla.org/en-US/docs/web/JavaScript JavaScript]. When a trigger script is executed, it may change an existing entry, create a new entry, execute an http request, create a file, perform data validation, etc. | ||
== Creating a trigger == | == Creating a trigger == | ||
Each library can have | Each library can have any number of triggers. To see the list of triggers, open the library, open the menu, and then select ''Triggers''. | ||
To create a trigger, open the library's list of triggers and click <big>'''+'''</big>. You must then | To create a trigger, open the library's list of triggers and click <big>'''+'''</big>. You must then define the event and write a trigger script that performs the necessary action. | ||
== | == Event that initiates execution of the trigger == | ||
The launch of the trigger is defined by two parameters: | The launch of the trigger is defined by two parameters: | ||
; Act | ; Act |