Important Update: Some Community URL Redirects are Under Maintenance. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Pop-up message with AWF button

RobynHarp
Contributor III

Looking to see if there is a way to add a custom pop up message when a user selects an advanced workflow button?  For example if the user selects “Reject”, we want a pop up to say “Are you sure you want to reject this record?”.  We are having issues with a group of users erroneously advancing records and training has not helped.  

1 ACCEPTED SOLUTION

Accepted Solutions

Anonymous
Not applicable

@RobynHarp,

Similar to this, but you bind not to Save and Apply button, but your AWF buttons, which IDs you can find via DevTools:

https://www.archerirm.community/t5/archer-custom-objects-forum/custom-object-pop-up-message-when-user-clicks-on-save-or-save/m-p/638704#M1932

 

View solution in original post

3 REPLIES 3

archer_scripts
Contributor III

It is possible to leverage the Custom Object to override the default behavior by the following logic in Javascript:

1. Locate the original workflow button, eg, Reject

2. Store the current onclick event handler as the original function (it kicks off the transition of the workflow)

3. Now assign this button's onclick property to a new function that contains the logic to invoke confirmation popup, the simplest way is to use the browser's native supported method of `window.confirm`, and when this function comes back as true, invoke the original click event stored in step 2. And of course, you can also leverage a nicer UI open-source library for the confirmation popup.

 


Innovative solutions for RSA Archer, at archerscripts.com

Anonymous
Not applicable

@RobynHarp,

Similar to this, but you bind not to Save and Apply button, but your AWF buttons, which IDs you can find via DevTools:

https://www.archerirm.community/t5/archer-custom-objects-forum/custom-object-pop-up-message-when-user-clicks-on-save-or-save/m-p/638704#M1932

 

Can you please elaborate me for the approve button.