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 / DisplayMode is not det...
Power Apps
Unanswered

DisplayMode is not detecting the icon value change

(0) ShareShare
ReportReport
Posted on by 111

I do some validations on the icon property that depends on the value, I show the check icon or the cancel icon.

And on the save button, if the icon is equal to check, I enable the button

The problem is that when entering the editing screen, and the icon logic runs, even though the icon is in check, the button becomes disabled, this happens sometimes yes and sometimes no.

 

Any ideas why this is happening?

 

icone.png

Categories:
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @JasonCastro - As I understand it, you have an EditForm control which includes a DataCard for a Date field. You have embedded into an Icon control into the DataCard.

     

    I would expect the DisplayMode property of the Save Button to be something along the lines of:

     

    If(
     Icon1.Icon = Icon.Check,
     DisplayMode.Edit,
     DisplayMode.Disabled
    )
  • JasonCastro Profile Picture
    111 on at

    @Amik Yes.

    But if I later edit this information, then enter the page, even though the icons are checked, the button is still in DisplayMode.Disabled, The only way to read the icon states was to do a Refresh(my_table)

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @JasonCastro - I see, so you update the record elsewhere in your app, and then navigate back to the Screen your EditForm resides in?

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard