Related List Client Script

Related List Client Script

Noticed that now we support Related List Client Script.

But I cannot find any guidance regarding this.

May I know how to capture the chosen value?