Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..
2020-03-17 09:18 AM
Hi Everyone,
In my custom code I have to call the save action during an AWF transition page load, I can see the conditioned fulfilled as all the alerts are being displayed but save is not working...I would apricate any help in this..
Sys.Application.add_load(function() {
const PerformPostCloseVAL= $('#' + $CM.getFieldById(PerformPostCloseID).clientId).text().trim();
const IssueReviewTypeVal = $('#' + $CM.getFieldById(IssueReviewTypeID).clientId).text().trim(); //
if (PerformPostCloseVAL!='Yes')
{
if(IssueReviewTypeVal !== 'Reopen Issue' && IssueReviewTypeVal !== 'Issue Review Not Required' && IssueReviewTypeVal === 'Revert Issue Status')
{
ClearUser(CloseApproverLevel1ID);
alert("cleared1");
ClearUser(CloseApproverLevel2ID);
$('#master_btnApply').click();
alert("cleared2");
}
}
//Resets transition tab to validate rules
$('a[title="Continue"]').removeAttr('onclick').unbind('click');
$('a[title="Continue"]').prop("onclick", null);
$('a[title="Continue"]').click(function() {
IssueSubmittoContinue();
});