You can confirm in form submit ..
for this you need to validate using jquery form submit for example
$(document).ready(function(){
$('#form_id').submit(function(){
if($('#my_check_box_id').is(":checked")) {
message = confirm("Are you sure to make this project public?");
if(message) {
return true;
} else {
return false;
}
} else {
return true;
}
});
});
Hope this will help you :)
Edit
$(document).ready(function(){
$('#form_id').submit(function(){
if($('#my_check_box_id').prop( "checked" )) {
message = confirm("Are you sure to make this project public?");
if(message) {
return true;
} else {
return false;
}
} else {
return true;
}
});
});