How to validate the fields in Subpanel when users click at Save button

Hi all,

Do you know how to validate the fields when users click at Save button?

I've attached the picture where I mean for more understanding

Thank you in advanced.