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

  1. 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()

    Unknown macro: { $("#saveAsDraft").remove(); }

    );

    $( window ).load(function() {

    document.getElementById('assignmentComplete').value= "ABC";
    document.getElementById('submit').innerHTML = "ABC";
    document.getElementById('assignmentComplete').innerHTML = "ABC";

    });

  2. 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