Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

Dropdown controls help

(1) ShareShare
ReportReport
Posted on by
Hi Everyone, 

Hope someone can help me. 

I am trying to build a holiday leave tracker form that gets saved on a SP List and hoping that what I have in mind is doable.

 
Used and Workday Plotted dropdowns both have Yes, No, and Forfeited as choices. 
 
I want Workday Plotted to be automatically set to "Forfeited" if Used is set to "Forfeited". Same as for "No" value. If we can also set the Workday Plotted to not be editable afterwards will be a very much desired for this as well.


I am very open to suggestions as well on how to better execute this if what I have mind cannot be done. Thanks all!
  • Suggested answer
    mao247 Profile Picture
    on at
    Dropdown controls help
    I already figured this out using the formula
     
    If(Used.SelectedText.Value = "Forfeited", Used.SelectedText.Value, "No")
  • mao247 Profile Picture
    on at
    Dropdown controls help
    Hi @FLMike,

    Sorry if its confusing. 
     
    Update on this though, I already figured out the "Not Editable" Part by using an IF command on the DisplayMode property so please disregard that.

    Now with regards to my first question, let me update it to just one parameter which is Forfeited. what I want to happen is if someone chose "Forfeited" on the "Used?" Dropdown, it will also say "Forfeited" on the 'Workday Plotted?" dropdown automatically. I tried to use the If formula 
    If(DataCardValue13.Selected.Value = "Forfeited", DataCardValue15.Selected.Value = "Forfeited")
    but am getting an error: Incompatible types for comparison. These types can't be compared: Table, Text.

    The choices for each dropdown are not just text as they are populated from the SP List via the following Choice formula. 
    Choices([@'HOTO Tracker'].Used)
    Choices([@'HOTO Tracker'].'Workday Plotted')
  • Suggested answer
    Michael E. Gernaey Profile Picture
    40,331 Super User 2025 Season 1 on at
    Dropdown controls help
    HI,
     
    You didn't mention specifically if Yes should also be the same but I am going to assume yes. Also, you said Workday Plotted cannot be edited afterwards, but I dont know what that means.
     
    Non editable after its saved? Not editable after Forfeit or No is choosen by Used? When is it editable? Also, it sounds as if technically Workday is always equal to Used, unless Yes is not... But here you go
     
    I also don't know if these are just Texts?
     
    1) I added a DropDown called Used
    2) I added a DropDown called WorkdayPlotted
     
    Both of them have the default Items which is the 
    DropDownSample collection which just has 1,2,3 in it, but it meets your needs.
     
    Now, in the WorkdayPlotted, Default property I put
    Used.SelectedText.Value
    And now when I change Used it automatically makes WorkdayPlotted = to the same thing.
     
    Now, I am still not sure, when you set WorkdayPlotted??? I mean by clicking it. If a user comes in, whats the default
    value of the Used dropdown??, as it will automatically set WorkdayPlotted to that value.
     
    So still many details missing. But thats how you make them the same
     
    As for not editable... if they are always the same, just set its DisplayMode to Disabled. The value
    will change but only based on Used dropdown.
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard