Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..
2024-10-16 07:15 AM
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?
2024-10-18 09:19 AM
@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
2024-10-18 09:19 AM
@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
2024-10-18 09:50 AM
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.