cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Super User III
Super User III

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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (46,261)