Dynamic button inside popup question

I'm not involved in any way, but it looks like you're trying to do something similar to this.