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 / display mode on form
Power Apps
Answered

display mode on form

(1) ShareShare
ReportReport
Posted on by 557
I had posted below previously but Having a hard time tagging  (@) the person that responded, does anyone know if that feature is still available?

~~~~~~~~~~~~~~~~~~~~~~~
I'm probably overcomplicating this but
 
If the reason value is "missing punch" the next field "Missing Punch Reason" should not be left blank (picture 1-submit button should not display)

OR

If the reason value is anything else other than Missing Punch then all fields should not be left blank.  (picture 2)

I was trying to do something like this.on the displaymode for the submit request button..but clearly this is not working
 
If(
    Or(
        And(
        //Required Fields ↓
        (DataCardValue3.Selected.Value = "Missing punch" And !IsBlank(DataCardValue6.Selected)),
        !IsBlank(DataCardValue13.Text),//Time of Punch
        !IsBlank(DataCardValue5.SelectedDate),//Punch Date
        !IsBlank(DataCardValue12.Text),//Punch to Change
        !IsBlank(DataCardValue4.Selected),//Timezone
        !IsBlank(DataCardValue2.Selected)// Action Type
    ),
        And(
        !IsBlank(DataCardValue3.Selected),//Reason)
        !IsBlank(DataCardValue13.Text),//Time of Punch
        !IsBlank(DataCardValue5.SelectedDate),//Punch Date
        !IsBlank(DataCardValue12.Text),//Punch to Change
        !IsBlank(DataCardValue4.Selected),//Timezone
        !IsBlank(DataCardValue2.Selected)// Action Type
        )),
    DisplayMode.Edit,
    DisplayMode.Disabled)
 
 
Picture 1
Picture 2
Categories:
  • Verified answer
    Kameshm05 Profile Picture
    310 Moderator on at
    Hi Joel,

    I have understand few things from your concern. I have tried to give right solution, but if it is not works just reply here. Please use the below formula for this concern.
     
    	If( ((DataCardValue3.Selected.Value = "Missing punch" && IsBlank(DataCardValue6.Selected))||(DataCardValue3.Selected.Value <> "Missing punch" && IsBlank(DataCardValue13.Text) || IsBlank(DataCardValue5.SelectedDate) || IsBlank(DataCardValue12.Text) || IsBlank(DataCardValue4.Selected)|| IsBlank(DataCardValue2.Selected) || IsBlank(DataCardValue3.Selected))),
    	DisplayMode.Disabled,
    	DisplayMode.Edit)


    Thanks

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard