The Deluge task alert is meant to alert a user by means of displaying a meaningful message. It can be used in all workflow blocks except the OnSuccess blocks. The alert message is displayed in a pop-up window.
where <value> is the alert message to be displayed.
- Imagine a form containing a field Age and that form submission is to be prevented when Age is not between 20 and 100.
type = number
if (input.Age < 20) && (input.Age >100)
alert "Age should be between 20 and 100";
- The code snippet given below fetches the data corresponding to the particular position applied by the applicant and checks if the Status for that position is currently Closed and displays an error message to the user. You can access all the details related to that position by accessing the variable “opening”.
opening = New_Opening [Position_Name == input.Applied_For];
if (opening.Status == “Closed”)
alert "The job profile " + input.Applied_For + " for which you have applied is not currently open";