cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kristinegriba
Helper I
Helper I

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

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

1 ACCEPTED SOLUTION

Accepted Solutions
AJ_Z
Super User
Super User

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 🙂

 



Signature:


If you appreciated my comments/responses please be sure to Like/Kudo them it really does make me smile 🙂 !
Link to the Power Platform Professionals United Kingdom User Group:

https://powerusers.microsoft.com/t5/Power-Platform-Professionals/gh-p/PowerPlatformProfessionalsUnit...

View solution in original post

5 REPLIES 5
Drrickryp
Super User
Super User

kristinegriba
Helper I
Helper I

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?"

AJ_Z
Super User
Super User

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 🙂

 



Signature:


If you appreciated my comments/responses please be sure to Like/Kudo them it really does make me smile 🙂 !
Link to the Power Platform Professionals United Kingdom User Group:

https://powerusers.microsoft.com/t5/Power-Platform-Professionals/gh-p/PowerPlatformProfessionalsUnit...

kristinegriba
Helper I
Helper I

@AJ_Z  That worked! Awesomeness! Many thanks 🙂

I am very happy to help 🙂

 



Signature:


If you appreciated my comments/responses please be sure to Like/Kudo them it really does make me smile 🙂 !
Link to the Power Platform Professionals United Kingdom User Group:

https://powerusers.microsoft.com/t5/Power-Platform-Professionals/gh-p/PowerPlatformProfessionalsUnit...

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,218)