I'm using a button that the displaymode changes if 2 search boxes match after a filter is applied.
But the button will not change to Edit mode when the sbox-Student_ID_2 and the gal_StudentID match & the sbox-SCode_2 and the gal_SCode match. If they both match then the button should switch to edit mode.
Text = "Yes this is My ID Goto Next Screen"
Visible = true
DisplayMode =
If(
(!IsBlank('sbox-Student_ID_2'.Text) && !IsBlank(gal_StudentID) && Len('sbox-Student_ID_2'.Text) = 7 && !IsBlank(
LookUp(
'Student Thank You Cards for Donors',
('sbox-Student_ID_2'.Text) = Student_ID
)
)) || (!IsBlank('sbox-SCode_2'.Text) && !IsBlank(gal_SCode) && Len('sbox-SCode_2'.Text) = 9 && !IsBlank(
LookUp(
'Student Thank You Cards for Donors',
('sbox-SCode_2'.Text) = SCode
)
)),
DisplayMode.Edit,
DisplayMode.Disabled
)
