Webview link click to open or close an arrangement in app?

Not sure if this is possible but this block is what I’ve tried. It works, but I’m missing just one piece of the puzzle I think.

I’m trying to set the visibility of an arrangement to false when you click on a link from webview.

These blocks do exactly what I want, but I want them to trigger this action on clicking that webview link. Only problem is, I cant figure out how to initialize a click listener sort of thing! so that this action only happens when the link is clicked

blocks (2)