How to hide Score value on Risk Assessment form when particular Manual Factor's choice is selected?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2024 12:31 PM - edited ‎07-16-2024 12:33 PM
I have a requirement about Risk Assessment Methodology (RAM). When configuring Manual Factors for RAM, along with the valid choices for each Manual Factors, business wants one more choice "N/A - Exclude from risk calculation", which will exclude the respective Manual Factor from risk score calculation when selected.
I have created a choice "N/A - Exclude from risk calculation" with score value "99" and I have used the following logic to exclude the respective Manual Factor.
var sum = 0;
var arr = [];
arr.push(FAC0001001);
arr.push(FAC0001002);
arr.push(FAC0001003);
arr.push(FAC0001004);
for (i = 0; i < arr.length; i++) {
if (arr[i] < 99) {
sum += arr[i];
}
}
score = Math.round(sum);
As per the requirement, when choice "N/A - Exclude from risk calculation" is selected, the respective Manual Factor is getting excluded from risk score calculation but the score value of the choice is still visible on Risk Assessment form which creates confusion for Assessor (user). How can I hide the respective score value?