How to use "Set Connection Field via JS" plugin

I’ve this problem I’m trying to solve and I’m not sure if the plugin will help