I want to create OnSelect function of a button that will count the total number of the same title in a list that is selected in the gallery and put it into a notify function.
This is my list:
And here is my gallery, the 'Request button' is the one that counts and has notify function:
Here is my current code in the OnSelect property of my Request to Buy button:
If(
!IsBlank(Contact_2) && !IsBlank(Name_2) && !IsBlank(Address_2),
ForAll(
Gallery4_1.AllItems,
Patch(
Buyer_Information,
Defaults(Buyer_Information),
{
Title: ThisRecord.Title,
Total_Price:ThisRecord.Price,
Buyer:Name_1.Text,
Address: Address_1.Text,
Contact_Number: Contact_1.Text,
Date_and_time: DatePicker1.SelectedDate
}
)
);
Reset(Name_1);
Reset(Address_1);
Reset(Contact_1);
Clear(colBuyItem);
Notify("Successfully requested", NotificationType.Success, 5000),
Notify("Please fill Name/Address/Contact #")
);

Report
All responses (
Answers (