How to create a popup message when a change request is HIGH RISK?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2024 03:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2024 05:07 PM
Hi, I would use an onload() client script hat checks the content of the 'risk' field and adds popup or message when conditions are met, and also an onchange() client script that checks the new value of the risk field and adds similar popup\message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2024 06:22 PM
this is the sample script on Client Script for Risk assessment
function onLoad() {
if (g_user.getClientData("run_risk_asmt") === "true")
new ChangeRiskUiActionControl().invokeAssessment();
}
can you help and give me sample on how to execute a popup message if Risk= HIGH?
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2024 07:34 PM
Hi, something like this
function onLoad() {
var myRisk = g_form.getValue('risk');
g_form.addInfoMessage('Risk value ' + myRisk);
if(myRisk == '2') {
g_form.addInfoMessage('Current risk = high | ' + myRisk);
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2024 08:05 PM
Thank you will try this in non prod and let you know! 🙂