Tips & Notes
To hide the “Save as Draft” button, drag a custom HTML into your submission form and add this jQuery:
<script language='text/javascript'>
$(document).ready( function() {
$('#saveAsDraft').remove();
});
</script>
$(document).ready( function() {
$('#saveAsDraft').remove();
});
</script>
Other hide button scripts for “Submit” and “Complete” are:
<script language='text/javascript'>
$(document).ready( function() {
$('[name=submit]').hide();
$('#submit, #assignmentComplete').hide(); });
</script>
$(document).ready( function() {
$('[name=submit]').hide();
$('#submit, #assignmentComplete').hide(); });
</script>
To renaming the labels & buttons to Bahasa Malaysia, add this to Userview Javascript field:
<script language='text/javascript'>
$(document).ready( function() {
$("#submit").val(" <YOUR VALUE> ");
$("#assignmentComplete").val(" <YOUR VALUE> ");
$("#cancel").html(" <YOUR VALUE> ");
$(".print-button").html(" <YOUR VALUE> ");
$("#saveAsDraft").hide();
} );
</script>
$(document).ready( function() {
$("#submit").val(" <YOUR VALUE> ");
$("#assignmentComplete").val(" <YOUR VALUE> ");
$("#cancel").html(" <YOUR VALUE> ");
$(".print-button").html(" <YOUR VALUE> ");
$("#saveAsDraft").hide();
} );
</script>
See the magic happens, the 'Save As Draft' button is gone =)
No comments:
Post a Comment