[Client Script] How to get selected related record Id

[Client Script] How to get selected related record Id

Hi Zoho,

I set an client script button in related record list.

We would like to fetch the selected record id/field for further action.

But I don't know how to get the selected id.

If there is not possible to get related record info, then what does the repeat button means.