Overview
When an event is triggered, a corresponding response will appear. So adding an event requires selecting the corresponding event response method, as shown in the following figure.
There are seven event response methods: JavaScript, Submit to Database, Send Email, Export Event, Mobile Pop-up, Submission Event, and Custom Submit, as shown in the following figure.
Response Method | Description |
JavaScript | The most commonly used response method is thatexecuting JavaScript code when the event is triggered. |
Submit to Database | When the event is triggered, the data is submitted to the database, which is similar to the built-in SQL submission in data entry. |
Send Email | When the event is triggered, an email is sent. This function requires configuring the sending email on the platform. |
Export Event | When the event is triggered, the specified template is exported to a specified type of file, such as Excel and Word. |
Mobile Pop-up | When the event is triggered, a pop-up box displays a hyperlink template and text remark, which is only applicable to mobile terminals. |
Submission Event | When the event is triggered, the data is submitted to the database, which is similar to the built-in SQL submission in data entry. |
Custom Submission | When the event is triggered, the data entry submission is implemented through a custom backend class. |
Method Description
JavaScript
JavaScript is the most commonly used response method. When the event occurs, it executes JavaScript code, usually used for real-time interaction with users, such as timely validation and dynamic assignment, as shown in the following figure.
Submit to Database
Submit to Database means submitting data to the database, which is similar to data entry. However, the data entry action is only executed after the event is triggered, as shown in the following figure.
The Submit to Database event allows you to bind multiple submit to database rules, which is similar to supporting multiple submissions in data entry. For details about setting submission rules, see Built-in SQL Submission.
Compared to data entry submission, Submit to Database has the additional function of Set Callback Function. Set Callback Function provides an entrance for you to set some interactive behaviors after successful or failed submission.
Send Email
When the event is triggered, an email is sent, and you can configure the email recipient, email content, and other information, as shown in the following figure.
Note that using this function requires configuring the sending email on the platform.
Export Event
When the event is triggered, the specified template is exported to a specified type of file, such as Excel and Word. You can configure the exported template, exported file type, exported file name, and other attributes, as shown in the following figure.
Mobile Terminal
When the event is triggered, a pop-up box displays a hyperlink template and text remark, which is only applicable to mobile terminals. You can configure the template and text remark displayed in the pop-up box here, as shown in the following figure.
For details, see [General] Mobile Pop-Up.
Submission Event
Submission Event is used in Set Submission Event under Data Entry Attrobute > Built-in SQL of the data entry template, as shown in the following figure.
It is similar to Built-in SQL of the data entry. For details, see Built-in SQL Submission.
Custom Submission
Custom Submission is used in Set Submission Event under Data Entry Attrobute > Built-in SQL of the data entry template, as shown in the following figure.
It is similar to Built-in SQL of the data entry. For details, see Custom Submission.