2023-03-13 08:56 AM
I have a custom object which run on a hyper link and now the requirement is to run that custom object button on advance workflow button which we can not modify. is there a way to run the custom object on click of pre-built AWF button. it would be better if you share any example which i can modify for my requirement.
2023-03-13 11:24 AM - edited 2023-03-13 11:35 AM
What do u mean u cannot modify AWF button? AWF button it is the same button as like Save or Save and Close. Once u find proper ID of a button via Inspect functionality, u can change behaviour.
I also believe, u can find in this forum some examples of modifying AWF buttons:
2023-03-13 11:36 AM
Oh I meant to say that we just have to call the awf button's method. actually issue is all the buttons are under dropdown and the id and class are very similar. for testing purpose I tried to run it on save button however the save button's id is different so it runs on save button but not completely. the values are not being pulled out. so i have below two queries
1. how we can call the particular button under the dropdown list which has same id and class?
2. when we call custom object with save or AWF button. is there any specific things which we need to take care because the same code is working absolutely fine if I run the code on my custom button (own created button) inside the record?
2023-03-13 12:01 PM
Each button under drop down still have own ID as far as I remember. And even if not, they should have something to differ for sure, at least label.
2023-03-13 01:02 PM - edited 2023-03-14 08:33 AM
the issue is when i am using the id the method is being called on every click event
2023-03-13 01:04 PM
So ID is different as I see it: 2041, 2043, 2051. You should be able to initiate a click on it via ID and click event with JQuery.