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 / Disabling the submit b...
Power Apps
Answered

Disabling the submit button

(0) ShareShare
ReportReport
Posted on by 675

Hi,In the below pic

freshyshreya_0-1668577032558.png

I want to enable the submit button(4) only for 2 combinations of 1,2,3.

Combination 1 - Approved,Approved,Loaded

Combination 2- Approved,New Request,Loaded

For the rest combination it should be enabled.

 

I am using the below formula,but it's not working correctly.

 

If(DataCardValue28.Selected.Value = "Approved" ,If( DataCardValue29.Selected.Value = "Approved" ,If( DataCardValue30.Selected.Value = "Loaded",DisplayMode.View,DisplayMode.Edit))) & If(DataCardValue28.Selected.Value = "Approved",If(DataCardValue29.Selected.Value = "New Request",If(DataCardValue30.Selected.Value = "Loaded",DisplayMode.View,DisplayMode.Edit)))

 

Please help!

 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,967 Most Valuable Professional on at

    Hi @freshyshreya ,

    You have said enabled twice in there, so if this is backwards, just turn the two Display Modes around, but this covers the two combinations you posted.

    If(
     DataCardValue28.Selected.Value = "Approved" &&
     DataCardValue30.Selected.Value = "Loaded" &&
     (
     DataCardValue29.Selected.Value = "Approved" ||
     DataCardValue29.Selected.Value = "New Request"
     ),
     DisplayMode.Edit,
     DisplayMode.View
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • freshyshreya Profile Picture
    675 on at

    Hi @WarrenBelz ,

     

    This works.Thanks a lot!!

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 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard