Here if first_aid checkbox is selected,a button called Add treatment notes will appear and by clicking Add treatment notes the tab gets open which contain treatment notes and description.For saving purpose a save button is avail inside the tab and it is saving the values also.
But my problem is,if i choose first_aid check box and click next button in main page,it should save the checked one in database.Previously,save was happening if i open the Add treatment notes tab and click save.
I want to know how to connect the same save function to two buttons,namely save  button in Add treatment notes tab already have save function,so how to connect that same to the next button in main page.Tab is in the main page,it is normally hidden,will open if any check box is selecetd
 
     
    