This is the code I use in the next button
If(IsBlank(ComboBoxCostCenter.SelectedItems),UpdateContext({locErrorCostCenterGallery:true}));
If(IsBlank(ComboBoxNatureOfGL.SelectedItems),UpdateContext({locErrorNatureOfGLGallery:true}));
If(IsBlank(ComboBoxGLAccount.SelectedItems),UpdateContext({locErrorGLGallery:true}));
If(IsBlank(txtAmount1_1.Text),UpdateContext({locErrorAmount1Gallery:true}));
If(!IsBlank(ComboBoxCostCenter.SelectedItems),UpdateContext({locErrorCostCenterGallery:false}));
If(!IsBlank(ComboBoxNatureOfGL.SelectedItems),UpdateContext({locErrorNatureOfGLGallery:false}));
If(!IsBlank(ComboBoxGLAccount.SelectedItems),UpdateContext({locErrorGLGallery:false}));
If(!IsBlank(txtAmount1_1.Text),UpdateContext({locErrorAmount1Gallery:false}));