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 / Can you make a dropdow...
Power Apps
Answered

Can you make a dropdown DisplayMode.View?

(0) ShareShare
ReportReport
Posted on by

I have a screen with several drop downs.  I want to have 2 of the drop downs to only be editable if it is AwaitingARApproval.

 

Here's the screen.

AR.JPG

 

On the dropdown, I have added the following code but it is still editable.

 

displaymode.JPG

 

Is there a way I can make the dropdown look like it is if it's in FormMode.View?  I have already watched Shane's video on form mode, but it was for the whole form, not just individual cards.

Categories:
I have the same question (0)
  • Verified answer
    mdevaney Profile Picture
    29,989 Moderator on at

    @Anonymous 

    In my opinion the easiest way is to hide the dropdown and display a text label when "AwaitingARAApproval" is not showing.

     

    To do this is to make a new label with the Text property having the code:

     

    drpDown_paymentTermsCode.Selected.Value

     

    Position the label directly over top of the dropdown.  Then change the Visible property of the dropdown to this

     

    If(ThisItem.'Work Flow Status' <> "AwaitingARAApproval", true, false)

     

    Then click on the dropdown control and change its Visible property to this

     

    If(ThisItem.'Work Flow Status' = "AwaitingARAApproval", true, false)

     

    Repeat this method for your second dropdown as well.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

     

  • v-xida-msft Profile Picture
    on at

    Hi @Anonymous ,

    Could you please share a bit more about the data source used in your app? Is it a SP List or a CDS Entity?

    Could you please show more details about the 'Work Flow Status' column in your data source?

     

    1. If the data source you used in your app is a SP List, and the 'Work Flow Status' column is a Choice type column:

    Set the DisplayMode property of the two Dropdown boxes to following:

    If(
     ThisItem.'Work Flow Status'.Value = "AwaitingARApproval",
    DisplayMode.Edit,
    DisplayMode.View )

    2. If the data source you used in your app is a CDS Entity, and the 'Work Flow Status' column is a Option Set type column:

    Set the DisplayMode property of the two Dropdown boxes to following:

    If(
     ThisItem.'Work Flow Status' = OptionSetName.AwaitingARApproval,
    DisplayMode.Edit,
    DisplayMode.View )

    Note: The OptionSetName represents the OptionSet, which is related to the 'Work Flow Status' field in your CDS Entity.

     

    Please take a try with above solution, check if the issue is solved.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    on at

    Hi @Anonymous how are you progressing with this? Were the above replies helpful?

     

    @Anonymous 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard