Hello Ahmad,
With javascript, it is a little difficult to hide only the "Submit all and finish" confirmation. Here is a temporary workaround. Add the following code in Site administration / Appearance / Additional HTML / Within HEAD (also works in When
BODY is opened and Before BODY is closed):
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("a.endtestlink").css("display","none");
$("input[value='Finish attempt ...']").on("focus", function(){
var x = confirm("\n \n Submit all and finish?");
if (x == true) {
$("input[value='Finish attempt ...']").blur()
$("input[value='Finish attempt ...']").click()
} else {
$("input[value='Finish attempt ...']").blur()
};
});
$("button:contains(Submit all and finish)").click();
});
</script>
This code replaces the "Summary of attempt" page with a window confirm message, then skips the "Submit all and finish" confirmation.
Also, $("a.endtestlink").css("display","none");
removes the "Finish attempt ..." link which is somewhat redundant and perhaps confusing.
Here's what you'll get: