Hi,
I have a power apps form that allows me to add a new record to our SharePoint list.
The submit button uses this logic
If (EditScreen_1_Form.Valid,Navigate(BrowseScreen_1,ScreenTransition.None));
SubmitForm(EditScreen_1_Form);
Refresh(xxxxxx_V2);
The record adds the following: name, project, from(dates) & to(dates).

The problem we have is, currently I can submit the same record with dates that can overlap. so for example I can submit a record name, project, and with dates between January 31, 2022 - July 10th, 2023. This is not what I want. I want the form to present a pop-up alert saying, this record already has these dates, please choose different dates.
I'm not sure how to go about this. I would be grateful for some support on this