I'd like to be able to know if the modal pop up has been closed. It appears that there is no way to provide an input ID of some sort to the lastbutton. I'd like this to be able to submit values from the pop up after clicking submit.
I'm not sure what precisely your request is here. Do you want to just add an id argument to your last button ? I think it is possible with the lastButton function :
I'd like to be able to know if the modal pop up has been closed. It appears that there is no way to provide an input ID of some sort to the lastbutton. I'd like this to be able to submit values from the pop up after clicking submit.