Two collapsible section layouts colliding on two submit button clicks

Certified Senior Developer

Hi Pals, 
Have a look at this interface

I want the user to click on submit button and then, it should take care of its own input fields inspite of marking it required and empty for the above iterface or vice versa
So, let me know how can we do the same

Right now, The two section layouts are having the code directly in this interface and they are not external to the main interface.
Any insights on this?

  Discussion posts and replies are publicly visible