Risk Assessment Ui action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2016 12:41 PM
Hi,
We have Risk Assessment UI action, when I change the values on the questionnaire, and submit, it gives me 'leave page or stay' message. Not sure why?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2016 12:11 AM
Hi Ravali
I've had this same issue. After the Geneva upgrade the Risk Assessment gave a 'leave page or stay' message. The cause was that we've modified the out-of-the-box UI action 'Fill Out Risk Assessment'. Due to those changes, this script wasn't updated when Geneva was installed, and Geneva has some changes.
I've fixed this issue by copying a (new) 'Fill Out Risk Assessment' UI action from a fresh Geneva instance, and modified it to our changes again. That fixed my issues.
Kind regards,
Pim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2017 10:47 PM
Helsinki/Genea version of code did not work for us and it introduced other issues. I have updated the onsubmit function of UI page survey_take.do as below to resolve this issue.
function onSubmit() {
g_form.modified=false;
this.mandatoryResult = g_form.mandatoryCheck();
return this.mandatoryResult;
}
Mark it as answered, if this solution works for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2017 11:00 PM
Hi,
From Geneva onwards, OOB UI action "Fill out Risk assessment' has been changed. Below modification in the code can help:
Change the function name from "invokeAssessment" to say "invokeAssessment_custom();" and comment out the below lines defined in the function "invokeAssessment_custom();" .
var d = new GlideOverlay({
title: 'Risk Assessment',
form: 'survey_take'
});
d.setPreference("sysparm_task_assessment", taskAsmtID);
d.setPreference("sysparm_survey", assessmentName);
d.setPreference("sysparm_survey_update", "false");
Hope this help. Mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke