web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / If Statement Notification
Power Apps
Answered

If Statement Notification

(0) ShareShare
ReportReport
Posted on by 196

Hello 

Trying to put and if statement on a place order.

So, if the order contains a sales item they need to tick checkbox first but if a points sales then they can place the order.

 

If(
And(Value(SSale.Text) > 0 && SalaryCheckBox.Value) = true, [submit code],

Notify(
"You must check the staff sales checkbox before placing order",
NotificationType.Error

 

The problem I'm having is when its a points sale only(PSale), It still asks for the checkbox to be clicked.

 

 

Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @rosscortb I am not familiar with your data source, but would it be possible to check if SSale = 0 and PSale is not blank or > 0?

    If(
     (Value(SSale.Text) > 0 && SalaryCheckBox.Value) || (Value(SSale.Text) = 0 && Value(PSale.Text) > 0), 
     [submit code],
     Notify("You must check the staff sales checkbox before placing order", NotificationType.Error)
    )

    Above is just a rough sketch of the logic, you might need to adjust a few things to your specific case.

    If this solves your question, would you be so kind as to accept it as a solution.
    Thanks!

  • rosscortb Profile Picture
    196 on at

    @LaurensM Thanks very much 

     

    only change was  

     || (Value(SSale.Text) = Blank()
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have two powerapps:

    OrderCart (sharepoint list called OrderList) and

    TrackShipping (sharepoint list called TrackList)

    Both of the sharepoint list have unique identifier - parcel_ID which is used as a reference id.

    In TrackShipping, the vendor key in the parcel_ID which is found in OrderList to update deliveryinfo.

    If parcel_ID is invalid or not found in OrderList, then notification error message 'Record dont exist' should be displayed.

     

     

    Can anyone tell me why my notification error message is not showing when I key in parcel id that is not found in sharepoint list.

     

     

    Submit button code 

    aaaa3_0-1671550116159.png

     

    Any help is appreciated.

  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @Anonymous would it be possible to create a separate, new topic for this since this one is closed?

     

    Thanks!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes I have posted one already. May I know if you can help me? thank you

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard