Hi there, I can't seem to get these two if statements to work. They work individually but I need to disable the button if current registration are greater than or equal to 5 OR if the users e-mail address e-mail address appears in my registration list.
Any tips?
If(MentorGallery.Selected.'Current Registrations' >= 5, DisplayMode.Disabled, DisplayMode.Edit)
If(IsBlank(LookUp(AppRegistrationList, 'Mentee Mail'=UserMail)), DisplayMode.Edit, DisplayMode.Disabled)
Solved! Go to Solution.
Hi @Markh12
Use this:
If(
MentorGallery.Selected.'Current Registrations' >= 5 ||
!IsBlank(LookUp(AppRegistrationList, 'Mentee Mail'=UserMail)),
DisplayMode.Disabled,
DisplayMode.Edit
)
Hope it helps !
Hi @Markh12
Use this:
If(
MentorGallery.Selected.'Current Registrations' >= 5 ||
!IsBlank(LookUp(AppRegistrationList, 'Mentee Mail'=UserMail)),
DisplayMode.Disabled,
DisplayMode.Edit
)
Hope it helps !
One quick correction. If you look at the original you'll notice the two IF()'s have opposite values for true and false. So we need to invert the logic in the first to enable if LESS THAN 5.
If(
MentorGallery.Selected.'Current Registrations' < 5 ||
!IsBlank(LookUp(AppRegistrationList, 'Mentee Mail'=UserMail)),
DisplayMode.Disabled,
DisplayMode.Edit
)
Otherwise it will enable registrations if there are 5 or more and that's when it should be disabled.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
207 | |
98 | |
60 | |
55 | |
52 |
User | Count |
---|---|
257 | |
161 | |
87 | |
79 | |
68 |