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 / Select a pre defined C...
Power Apps
Unanswered

Select a pre defined Choice option to a disabled dropdown

(0) ShareShare
ReportReport
Posted on by 10

Hello,

 

I have a conditional dropdown in the app that gets disabled if the condition is met. I need the disabled dropdown to select a Choice "ConditionMet" (from the choice list predefined in SharePoint List)  & display it into the dropdown so that same flows to the SharePoint list while submission.

 

Is this possible? If yes, need your guidance on how can I do it.

 

Thanks!

 

A002.png

Categories:
I have the same question (0)
  • scalca Profile Picture
    on at

    dropdown control has a DefaultSelectedItems property where you can add the item you want to be selected in case your condition is true

    use the same condition you have used to disable the dropdown with different true/false actions 

  • rho_s Profile Picture
    10 on at

    @scalca the DefaultSelectedItems property is not available as I have not used a Combobox (cannot use one due to Combobox limitation in my case). Is there a way this can be achieved using a dropdown?

  • scalca Profile Picture
    on at

    sorry DefaultSelectedItems works with modern dropdown control

    in your case there is Default property which you could use

  • rho_s Profile Picture
    10 on at

    @scalca Thanks!

    Apparently, the Default for the dropdown already has below code that fetches the value from SharePoint list.

    ThisItem.ChargeMismatch.Value

      I tried doing an If statement as below, but it throws an error.

    If(ThisItem.Plan = ThisItem.ChargedAmount,{Value: "Charges Match"},ThisItem.ChargeMismatch.Value)

    "Charges Match" is a Choice column value in SharePoint list for the column. The error that I get is as below.

    A003.png

  • scalca Profile Picture
    on at

    Try to pass the text value only as mentioned in the error message. It expects a text value

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 491

#2
WarrenBelz Profile Picture

WarrenBelz 407 Most Valuable Professional

#3
11manish Profile Picture

11manish 331

Last 30 days Overall leaderboard