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 Platform Community / Forums / Power Apps / Disable button based o...
Power Apps
Unanswered

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"

Categories:
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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard