Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..
2020-12-08 12:44 PM
Hi, I have a requirement wherein to place a custom button(Submit Certification) in the header.
Adding the code which I have used to create the Custom button:
<div class="toolbar-app-buttons-left">
<a title="Set Value" class="tb-btn-link-left" id="btnSetValue" href="javascript:void(0);" data-check-dirty="false">
<div class="tb-btn" data-icon="" data-icon-pos="left">Submit Certification</div>
</a>
</div>
<script type="text/javascript">
var integration = {
statusFieldId:"field ID",
statusSubmit:"Value ID"
};
$('#btnSetValue').click(function(){
UpdatesValueList(integration.statusFieldId, integration.statusSubmit);
$('#master_btnSave').click();
});
function UpdatesValueList(changeId, assignedValue) {
var valueArray = new Array(1);
valueArray[0] = assignedValue;
$CM.setFieldValue(changeId, valueArray, '');
$('#master_btnSave').click();
}
</script>
It all works fine I just now need to add this button header menu.
2020-12-10 11:08 AM
Hi David,
$('#btnSetValue').click(function(){