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 / Button Enabled / Disab...
Power Apps
Answered

Button Enabled / Disabled bug?

(0) ShareShare
ReportReport
Posted on by 87

Hello everyone,

 

I am currently testing my application on my mobile phone and on the browser.

 

When I am testing the App in Power-Apps "editing-mode" the buttons work like they should:

Bildschirmfoto 2023-07-31 um 18.35.28.png

the "kommen" button is enabled to start the timer.

the "X" button is disabled until you press the "kommen" button. After that the "kommen" button is disabled.

the "gehen" button is also disabled until you press the "kommen" button. After that the "kommen" button is disabled.

 

 

But if I use the App via the link for the browser or on my mobile phone it looks like this:

 

Bildschirmfoto 2023-07-31 um 18.35.40.png

all buttons are enabled but from the start there should only be the "kommen" button enabled.

 

I am working with this code for the "kommen" button:

If(varNewItem.'Active Session'=true;DisplayMode.Disabled;DisplayMode.Edit)

 

"X" and "gehen" button share the same code:

 

If(varNewItem.'Active Session'=false;DisplayMode.Disabled;DisplayMode.Edit)

 

once i click on the "kommen" button I activate an active session on my sharepoint list.

 

any suggestions?

Categories:
I have the same question (0)
  • Verified answer
    madlad Profile Picture
    2,637 Moderator on at

    Is varNewItem.'Active Session' defined at the start of the app?

    If not, you'll want varNewItem.'ActiveSession' to be defined as false, likely either in the app's OnStart or the form's onvisible.

     

    If a record is blank when being compared as a boolean in an if function, it will return false - so if it's blank, both of your if statements would return false at the same time.

     

    Hope this helps!

  • apca Profile Picture
    87 on at

    thanks a lot now its working as it. should be! 

     

    Set(varNewItem, { ActiveSession: false })

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 426

#2
WarrenBelz Profile Picture

WarrenBelz 381 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 315 Super User 2026 Season 1

Last 30 days Overall leaderboard