Hi,
I have a gallery with repeating section as shown below
On my Add&Close button , Display Mode i have this code :
If(
CountRows(
Filter(
Gallery_P.AllItems,
IsBlank(P1.Text)
)
) > 0,
DisplayMode.Disabled,
!IsBlank(P7.Text) && !IsMatch(P7.Text,"^[A-Z]{2}$",MatchOptions.Complete),DisplayMode.Disabled,
!IsBlank(P5.Text) && !IsMatch(P5.Text,"^\d{5}$",MatchOptions.Complete),DisplayMode.Disabled,
!IsBlank(P9.Text) && !IsMatch(P9.Text,"^\d{3}-\d{2}-\d{4}$",MatchOptions.Complete),DisplayMode.Disabled,
!IsBlank(P8.Text) && !IsMatch(P8.Text,"^((0[13578]|1[02])\/(0[1-9]|[12][0-9]|3[01])|(0[469]|11)\/(0[1-9]|[12][0-9]|30)|02\/(0[1-9]|[12][0-9]))\/(19|20)\d{2}$",MatchOptions.Complete),DisplayMode.Disabled,
DisplayMode.Edit
)
My use case is
- Border color changes when format is wrong
- Add&close become disabled when fomrat is wrong
My issue is ,
- Border color changes wokr fine
- If I enter a wrong format in row 1add&close button becomes disabled
- but my add&close button doesnt become disabled when i add a new row with correct format
as shown below
This just validates one row and not all rows.
Can someone please help?

Report
All responses (
Answers (