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 of a data...
Power Apps
Answered

Display mode of a data card that is dependent on a dropdown value, is not working

(0) ShareShare
ReportReport
Posted on by 158

What error am I making in my If-then statement?

 

I have a data card in my Power Apps form that is to be disabled, unless a specific value from a dropdown is selected in which case the data card then becomes editable. FYI, my data source for the form is a table in Dataverse.

 

The Dropdown

Capture186_powerapps.JPG

 

The Data Card

The data card's display mode should be 'edit' when the dropdown value is "Sole Proprietor" ... if the dropdown has a value other than "Sole Proprietor" then the data card's display mode should be 'disabled.'

Capture185_powerapps.JPG

 

Error Message

I'm hoping someone can clarify this message I'm seeing in Power Apps and give me some direction as to what correction I need to make in my formula. I thought that the selected value in a dropdown is type 'text,' but maybe not?

Capture187_powerapps.JPG

 

Thanks in advance for taking the time to read to my post, I hope it made enough sense to make it easy to reply to.

 

Best,

Kristine

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
  • kristinegriba Profile Picture
    158 on at

    Thanks, Drrickryp... it seems however, I don't have "Option Sets" available to me. I do have "Choices," though, and that is what I used.

     

    Capture188_powerapps.JPG

    However, I am noticing that I selected the data type for the column, "Structure" to be "Choice" ... I'm wondering if I should have set it to "Choices?"

  • Verified answer
    AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    Choice is an Option set.

     

    what happens if you do:

     

    If(DCV_Structure_dd.Selected.Value ='Corporate Structure'.'Sole Proprietor',
    DisplayMode.Edit,DisplayMode.Disabled)

     

    The bits in red I guessed based on the error and what you shared above it may be spelt differently or you may have called it something differently, if there is an error share what it and if it works please let us know 🙂

     

  • kristinegriba Profile Picture
    158 on at

    @AJ_Z  That worked! Awesomeness! Many thanks 🙂

  • AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    I am very happy to help 🙂

     

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