cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
xiixBlue
New Member

Need help alerting via a button

Hi Guys, I have the following code:

If(And(VarMonitorChk=false,VarKeyboardChk=false,VarHeadsetChk=false),Notify( "No Equipment Selected", NotificationType.Warning, 4000 ))

But its not alerting when they are false.

 

Any help would be greatly appreciated.

3 REPLIES 3
eka24
Super User
Super User

Am guessing you are dealing with checkboxes;


If(And(VarMonitorChk.Value=false,VarKeyboardChk.Value=false,VarHeadsetChk.Value=false),Notify( "No Equipment Selected", NotificationType.Warning, 4000 ))

or

If(And(!VarMonitorChk.Value,!VarKeyboardChk.Value,!VarHeadsetChk.Value),Notify( "No Equipment Selected", NotificationType.Warning, 4000 ))

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

well VarMonitorChk, VarKeyboardChk and VarHeadsetChk are global variables updated by the oncheck and onuncheck methods of checkbox 1, 2 and 3.

Did you try any of the formulas, did you receive errors?

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,230)