Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Hi Joget teams,
I tried to change the button's value using javascript as below using the HTML form element:
<script language="text/javascript"> $(document).ready( function() { $("#submit").val("Hantar"); $("#saveAsDraft").val("Simpan"); $("#saveAsDraft").remove(); $("#complete").val("Hantar"); } ); </script>
But there are no changes on the button's value. Attached is my system screenshot.
2 Comments
Suman Palit/ Adsensa Corp
I've noticed the same thing. In v4 as well, does not look like I can change the button text. Here is my javascript that is in the Custom HTML
$(document).ready(function()
);
$( window ).load(function() {
document.getElementById('assignmentComplete').value= "ABC";
document.getElementById('submit').innerHTML = "ABC";
document.getElementById('assignmentComplete').innerHTML = "ABC";
});
Promod Kumar Singh
Hi,
you can use below script to change label of buttons and hiding 'save as draft' button
<script type="text/javascript">
$(function(){
$("#assignmentComplete").val("save");
$("#saveAsDraft").remove();
});
</script>
Write this script in custom html
You can also hide 'Save As Draft' button by checking 'Remove save as draft' button found under 'Map Activities to Forms'.
Thanks,
Promod