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 / Button Display Mode & ...
Power Apps
Unanswered

Button Display Mode & DataCard Visibility

(0) ShareShare
ReportReport
Posted on by 260

Hi All,

 

I have a editable form where two datacards are only visible when a certain selection is made in another datacard.

I have a button that will submit the form that has If(IsBlank( statements in the display mode so that it is disabled if certain items in the form aren't filled in.

 

What I want is for the button to be disabled if those two datacards are visible but not filled in and then the button to become editable when they are visible and filled in, but I also want the button to be disabled and editable when they aren't visible and filled if the other items are filled. 

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @carrie-anne27 - what is the data type of the field bound to the other DataCard which will drive the visibility of the other two DataCards? (Single Line Text, single-select Local Choice, Number etc)

  • carrie-anne27 Profile Picture
    260 on at

    Hi Amik,

     

    The items property is 

    Sort(
        Ungroup(
            Table(
                {
                    Value: Distinct(
                        Filter(
                            'Asset Type',
                            ServiceID = Dropdown3.Selected.Value
                        ),
                        AssetType
                    )
                }
            ),
            Value
        ),
        Value,
        SortOrder.Ascending
    )
     
    So I assume its a single select choice
  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @carrie-anne27 - please find out by navigating to the columns area of your (presumably still Dataverse) table and check the data type:

     

    Amik_0-1718154517563.png

     

  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @carrie-anne27 - I am going offline for the rest of the day and I was hoping to give you a full answer. For the time being I will leave you with this:

     

    1. Set the Visible property of the two DataCards to:

     

    DataCardValue1.Selected.Value = 'Your Condition'
    
    //replace DataCardValue1 with the name of the ComboBox control in the other DataCard

     

    2. Set the Required property of two DataCards to:

     

    Self.Visible

     

    3. Set the DisplayMode property of your Button control to:

     

    If(
     'Your Form Name'.Valid,
     DisplayMode.Edit,
     DisplayMode.Disabled
    )

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 421

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard