Call backend function from lightbox on button click event

I have lightbox with a button. I am trying to call a backend function from lightbox when the button is pressed but nothing happens.
The question is, if it possible to call backend functions from opened lightbox?

Hi Alexander,
Yes, it’s possible to call a backend function that way.
Can you post your code both for the lightbox and for the backend function?