Bootstrap Modal/Popup with Visualforce + CommandButton Explained
The Modal window is a dialog box/popup window that is displayed on top of the current page:
In this scenario, We will add multiple Contacts to Account using modal box/Pop up (Bootstrap) without leaving the page which means in same page.
NOTE: For demonstration purpose I used Account & Contact, you can use any two related objects of your choice
Check demostrated output below
Example explained with
<apex:commandButton> for Save action
Follow below links for actual working code