Identify Button in a

1
0
-1

Hello All,

In Community 7.7.3 I have a button within Collection Container.

How can I identify which button instance was clicked?

I just need to identify the collection item index to decide which item to edit in the next activity form.

Best regards!

Comments

Submitted by antoine.mottier on Wed, 04/10/2019 - 16:27

Hi,

When the button is clicked does it submit the task?

Submitted by Edo69 on Wed, 04/10/2019 - 20:23

Antoine,

Thank you for your response.

It does submit the form, but if I use $item in the "Data sent on click" field, it sends no data. The same if I use $item.persistenceId.

It only works well if I send $item, but what I really need to receive is $index.

Regards.

1 answer

1
0
-1

For example if you have declared a process or step contract that is expecting an integer and that is named buttonIndex you just need to configure your button "Data sent on click" to be: {"buttonIndex": $index} that should do the trick.

Notifications