Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Dropdown Static Value

(0) ShareShare
ReportReport
Posted on by 29

Hi

 

I have a dropdownbox that needs to have a static value, but de list that it's using to get his information is a linked list.

How can I set it to a default value?

 

Thanks

  • Verified answer
    Double_v Profile Picture
    Double_v 29 on at
    Re: Dropdown Static Value

    Hi @v-qiaqi-msft 

     

    I solved it with the help of my colleague and we came with this solution: 

    Patch('Inkomende Tickets',{Title:'Txt DCV Titel'.Text,
    'Omschrijving probleem':'Txt DCV Omschrijving Probleem Melden'.Text,
    Email:User().Email,
    Urgentie: {'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference", Value:'Txt DCV Urgentie'.Selected.Value },
    Status:{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
    Id:1, Value:"Nieuw"},
    'Type probleem':{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
    Id:'Txt DCV Type Probleem Melden'.Selected.Id, Value:'Txt DCV Type Probleem Melden'.Selected.Value}});

     

  • Re: Dropdown Static Value

    Hi @Double_v,

    Could you please share a bit more about the scenario:

    1. how you set the Items of the dropdownbox ?(IMPORTANT)
    2. what is the column type of the column corresponding to the dropdownbox from your data source where you want to submit data to?
    3. is this dropdownbox a Combo Box or a Dropdown?

    Do you want this dropdownbox to keep the static value always?

    If you want this dropdownbox to keep a static value always,  how you set the default value depends on how you set the Items property of the dropdownbox .

    I have a similar test for you, please check as below.

    In my scenario, I have a Choice column to store the Dropdown selected and I populate the Dropdown with a Text column from the linked list.

    I just assume that you want keep the Combo Box display a static value always

    I set the Combo Box Items as below:

    Filter(LinkList,TextColumn="Value").TextColumn

    Combo Box DefaultSelectedItems property:

    LookUp(LinkList,TextColumn="Value")

    Set the Update property of the data card:

    DataCardValue4.Selected

    Note that DataCardValue4 represents the Combo Box

    Check if it could help you.

    Regards,

    Qi

  • Double_v Profile Picture
    Double_v 29 on at
    Re: Dropdown Static Value

    I can submit the form but the value does not appear in my list

  • AshwiniBhandari Profile Picture
    AshwiniBhandari 97 on at
    Re: Dropdown Static Value

    Hi,

     

    Let's assume few things first:

    You have a form named: Form1

    Drop Down control: DropDown1

     

    Select the data card value of DropDown1 and set it's Default property to:

     

    If(Form1.Mode=FormMode.New, {Value: "YourDefaultValueHere"},Parent.Default)

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard