Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..
2021-06-11 01:08 PM
In one case, where a record has to be saved to be enrolled in advanced workflow, we want to rename the Save button to "Begin". Hiding the Save button and adding a custom begin button that performs the save functionality would also be fine. I've tried to do both and failed. I know the code to hide buttons, it's just the renaming I'm struggling with. I think my best guess is:
<script>
Sys.Application.add_load(function() {
$('#master_btnSave1').hide();
$('#master_btnCopy').hide();
var beginbtn = document.getElementsById("master_btnApply1").childNodes;
beginbtn[0].innerHTML = "Begin";
})
</script>
This hides the Save and Close and Copy buttons, but doesn't rename the Save button.
I can see the element I want to change:
My javascript is pretty weak. Is there anyone who's figured out how to do this? Thanks!
2021-06-11 01:23 PM - edited 2021-06-14 08:20 AM
Margo, try the following,
<script type="text/javascript">
$('#master_btnApply1').find('.btn-new').text('Begin');
</script>
Advisory Consultant
2021-06-11 01:23 PM - edited 2021-06-14 08:20 AM
Margo, try the following,
<script type="text/javascript">
$('#master_btnApply1').find('.btn-new').text('Begin');
</script>
Advisory Consultant
2021-06-14 08:15 AM
Thanks, Dave! Worked like a charm.