I cannot say exactly how you would do this. You would need to somehow return the post ID created to the page, possibly by setting a cookie or some other means when the post is created. You could then fire an action in JS when the model is closed to get that value and populate your other form.