Attach content button - add customized action before files attached

in the Pega provided “Attach content” button, we need add customized action in its ACTION SET before the default behavior, that is, pop up a dialog to upload and attach files, how could we do that?

Business purpose is to use this button in a list, before the default behavior start, we need get current index (which line in the list). We can get the index only in Action Set of this button.

If we add actions to “Click” event of this button, as test, it will be run AFTER the default behavior.

We expect we do something BEFORE the default behavior in the button’s ACTION SET.

Of course, we have found “Hover” event can fulfill, however we would not like to use this event as it looks no so reliable also it may be duplicate triggered.

Thanks.

Hi @MaxonL16591286 Have you found out the answer. I am looking for the same configuration. I want to perform an action before default behavior of attach content control.

@Pavan_S

Not yet.

We have to use another solution:

We add a common button whose click event includes 2 steps: 1st, do what we want, 2nd, call a java script function that issue “.OnClick” call to the Attach content" button.

The java script code can be stored into an empty section with self define html codes.