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 / Error message only dis...
Power Apps
Answered

Error message only display for only one radio list item

(0) ShareShare
ReportReport
Posted on by 11

Hello house, I need someone to help me with challenge i am having with my app.

I have a grocery selection app I have designed; I need it to display error message when the limit amount is exceeded.

COleabhie_0-1684340597224.png

 

Scenario

I have a Label named:  lblTotalPrice where the amount of the selected items is display.

I have a Input Radio named: rdoPeriod; where I have monthly and quarterly on the list

I have a Label named:  lblErrorMsg; where the error message is displayed.

I need a formula expression so that when you select “Monthly” from the radio list, and the value in lblTotalPrice  >3500, error message should display “Amount Exceeded”.

If “Quarterly” is selected and the value in lblTotalPrice  > 10500, error message should display “amount Exceeded”.

Thanking you for your anticipated support.

Categories:
  • Verified answer
    VDI Profile Picture
    337 on at

    add below code on Radio button OnChange property

     

    If( !IsBlank(rdoPeriod.Selected.Value) && rdoPeriod.Selected.Value = "Monthly" &&
    Value(lblTotalPrice.Text) > 3500,
    UpdateContext({varShowErrorMessgae: true}),
    If( !IsBlank(rdoPeriod.Selected.Value) && rdoPeriod.Selected.Value = "Quarterly" &&
    Value(lblTotalPrice.Text) > 10500,
    UpdateContext({varShowErrorMessgae: true}),
    UpdateContext({varShowErrorMessgae: false})
    )
    )

    on visible property of the error message label add : varShowErrorMessgae

     

  • Verified answer
    COleabhie Profile Picture
    11 on at

    Thanks VD.

    The code you sent actually did the magic. The app is working fine.

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard