Below is the "Edit Site" page, and the other is the "Main Dashboard" page.
I will post the code that is on the submit button when adding a "New Site".
If(!IsBlank(NewAddressText.Text)&&!IsBlank(NewCompanyText.Text)&&!IsBlank(NewSiteText.Text)||!IsBlank(NewCompanyText.Text)&&!IsBlank(NewSiteText.Text)&&IsBlank(NewContactText.Text)||IsBlank(NewPhoneText.Text)||IsBlank(NewEmailText.Text)||IsBlank(Map.Image),If(CountRows(CameraPhotos)>=1,UpdateContext({AddPhoto:Patch(SitePhotos,Defaults(SitePhotos),{PhotoId:Max(SitePhotos,PhotoId)+1,Photo:Last(FirstN(CameraPhotos,1)).Photo,ID:Max(SiteInspector,ID)+1,Note:Text(Last(FirstN(CameraPhotos,1)).Note)})}));
If(CountRows(CameraPhotos)>=2,UpdateContext({AddPhoto:Patch(SitePhotos,Defaults(SitePhotos),{PhotoId:Max(SitePhotos,PhotoId)+1,Photo:Last(FirstN(CameraPhotos,2)).Photo,ID:Max(SiteInspector,ID)+1,Note:Text(Last(FirstN(CameraPhotos,2)).Note)})}));
If(CountRows(CameraPhotos)>=3,UpdateContext({AddPhoto:Patch(SitePhotos,Defaults(SitePhotos),{PhotoId:Max(SitePhotos,PhotoId)+1,Photo:Last(FirstN(CameraPhotos,3)).Photo,ID:Max(SiteInspector,ID)+1,Note:Text(Last(FirstN(CameraPhotos,3)).Note)})}));
If(CountRows(CameraPhotos)>=4,UpdateContext({AddPhoto:Patch(SitePhotos,Defaults(SitePhotos),{PhotoId:Max(SitePhotos,PhotoId)+1,Photo:Last(FirstN(CameraPhotos,4)).Photo,ID:Max(SiteInspector,ID)+1,Note:Text(Last(FirstN(CameraPhotos,4)).Note)})}));
If(CountRows(CameraPhotos)>=5,UpdateContext({AddPhoto:Patch(SitePhotos,Defaults(SitePhotos),{PhotoId:Max(SitePhotos,PhotoId)+1,Photo:Last(FirstN(CameraPhotos,5)).Photo,ID:Max(SiteInspector,ID)+1,Note:Text(Last(FirstN(CameraPhotos,5)).Note)})}));
If(CountRows(CameraPhotos)>=6,UpdateContext({AddPhoto:Patch(SitePhotos,Defaults(SitePhotos),{PhotoId:Max(SitePhotos,PhotoId)+1,Photo:Last(FirstN(CameraPhotos,6)).Photo,ID:Max(SiteInspector,ID)+1,Note:Text(Last(FirstN(CameraPhotos,6)).Note)})}));
If(CountRows(CameraPhotos)>=7,UpdateContext({AddPhoto:Patch(SitePhotos,Defaults(SitePhotos),{PhotoId:Max(SitePhotos,PhotoId)+1,Photo:Last(FirstN(CameraPhotos,7)).Photo,ID:Max(SiteInspector,ID)+1,Note:Text(Last(FirstN(CameraPhotos,7)).Note)})}));
UpdateContext({AddRecord:Patch(SiteInspector,Defaults(SiteInspector),{ID:Max(SiteInspector,ID)+1,Company:NewCompanyText.Text,Site:NewSiteText.Text,PumpSettings:NewPumpSettingsText.Text,Notes:NewNotesText.Text,Address:NewAddressText.Text,Contact:NewContactText.Text,Phone:NewPhoneText.Text,Email:NewEmailText.Text,Map:Map.Image&&If(Radio1_4.Selected.Value="Use GPS for current Location",IsNumeric(Location.Latitude),""),Longitude:If(Radio1_4.Selected.Value="Use GPS for current Location",IsNumeric(Location.Longitude) ,""),IsGPSCoordinates:If(Radio1_4.Selected.Value="Use GPS for current Location","True","False")})});Navigate(DashboardScreen,ScreenTransition.None));If(IsBlank(NewCompanyText.Text)||IsBlank(NewSiteText.Text)||IsBlank(NewAddressText.Text)||IsBlank(ContactEditText.Text)||IsBlank(PhoneEditText.Text)||IsBlank(EmailEditText.Text) ,UpdateContext({Required:true}),UpdateContext({Required:false}))

