Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

display mode on form

(1) ShareShare
ReportReport
Posted on by 551
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
    302 Super User 2025 Season 1 on at
    display mode on form
    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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,700 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard