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

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Disable button based on dataverse choice field

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a multi screen PowerApp that leverages a collection to collate the information entered. That colllection has one record that is displayed on the final page and the patched into the database. colNewJD is the variable that is passed between each page and patched to ensure that it has the users changes/updates.

 

I want to be able to disable the button if the record being viewed is being processed. The following code is being put in the button's DisplayMode field. I cannot access ThisItem.'Flow State' because it is in a Form, and the button is on the outside of the form.

 

If(First(colNewJD).'Flow State'='Flow State (Job Description Verifications)'.Processing,
FormMode.View,
FormMode.Edit
)

 

Problem: I am pretty sure my logical test is comparing different types, but I can't figure out what needs to change. The error message is "Expected enum value"

I have the same question (0)
  • Verified answer
    zachm Profile Picture
    Microsoft Employee on at
    Re: Disable button based on dataverse choice field

    Welp. I was very close. I used the wrong Mode. i needed DisplayMode not FormMode.

     

    If(First(colNewJD).'Flow State'='Flow State (Job Description Verifications)'.Processing,
    DisplayMode.Disabled,
    DisplayMode.Edit
    )

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 652 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 410 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 236

Last 30 days Overall leaderboard