Tuesday, June 4, 2013

Form Tutorial 1 - How to remove 'Save As Draft' button & 'Submit' button


 

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>

Other hide button scripts for “Submit” and “Complete” are:

<script language='text/javascript'>
$(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>

See the magic happens, the 'Save As Draft' button is gone =)

No comments:

Post a Comment