- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2023 03:16 AM
I have a requirement whenever the SCTASK state changes to "Closed Skipped" it should restrict the user to save or update the record by showing the message to opt for the specific option only among 3 available options in the variable of the SCTASK form
Could someone help with the approach, Thanks in the advance..!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2023 03:36 AM
I myself tried this with BR- Before update and it is working as expected please find the below
(function executeRule(current, previous /*null when async*/ ) {
// var Message = 'Please fill the mandatory variable "User Type" on the SCTASK form';
// var message1 = Message.fontcolor("red");
if (current.variables.user_type != "Not Required") {
gs.addErrorMessage(' ');
current.setAbortAction(true);
}
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2023 03:36 AM
I myself tried this with BR- Before update and it is working as expected please find the below
(function executeRule(current, previous /*null when async*/ ) {
// var Message = 'Please fill the mandatory variable "User Type" on the SCTASK form';
// var message1 = Message.fontcolor("red");
if (current.variables.user_type != "Not Required") {
gs.addErrorMessage(' ');
current.setAbortAction(true);
}
})(current, previous);