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

Notifications

Announcements

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:
I have the same question (0)
  • Verified answer
    Kameshm05 Profile Picture
    302 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

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard