Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..

cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow Actions IDs changing

mintyalex
Contributor III

Hi everyone.

I was wondering if anyone else in the community has experienced this and if they know the qualification criteria - but we've got several custom buttons in our environment that rely on the IDs of the Actions dropdown menu.

I would like to know (apart from obviously changes to the workflow of the application itself) what can cause these IDs to change, as I haven't made any changes to this particular app recently yet this morning found  the IDs have changed - which makes me wonder if other apps or processes (eg Archer version updates) would change them?

mintyalex_1-1729077285465.png

1 ACCEPTED SOLUTION

Accepted Solutions

DavidPetty
Archer Employee
Archer Employee

@mintyalex you can reference menu items by their text instead.

Like so, btnName would be the text of the menu item like 'Request Support'

$('.tb-btn-link-left:contains("' + btnName +'")').attr('onclick','validateBeforehand()');

 

 Advisory Consultant

View solution in original post

2 REPLIES 2

DavidPetty
Archer Employee
Archer Employee

@mintyalex you can reference menu items by their text instead.

Like so, btnName would be the text of the menu item like 'Request Support'

$('.tb-btn-link-left:contains("' + btnName +'")').attr('onclick','validateBeforehand()');

 

 Advisory Consultant

mintyalex
Contributor III

Thanks @DavidPetty 

I've done it a slightly different way after testing today, by using a function that looks for the <div> of the button with the specific text (eg Request Support) and then that uses an 'onclick' which clicks on the parent element - the button itself.

However, your method could be a simpler version of this so I will give it a go.