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 / I need a dropdown to p...
Power Apps
Answered

I need a dropdown to populate different values based on a radio button selection

(0) ShareShare
ReportReport
Posted on by 101

I have radio button Yes, No, Partial

 

I have 2 data cards that are visible when you select Yes, or Partial. 

 

DataCard1 = text input

DataCard2 = (SharePoint Choice column) dropdown (Choice1, Choice2, Unknown)

 

When "No" is selected I want to have the Text Datacard1 populate as "" and DataCard2 to Populate to "Unknown"

 

The code I have for the Default of DataCard1 works great

If(
 rdoHardCopy.Selected.Value = "Partial",
 ThisItem.'Provide location',
 If(
 rdoHardCopy.Selected.Value = "Yes",
 ThisItem.'Provide location',
 ""
 )
)

  But I cant seem to figure out how to do the same with the dropdown in DataCard2

Screenshot 2021-05-14 173801.png

Categories:
  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @ChrisSullivan  Replace the string "Unkown" with LookUp(Choices([@yourSPListName].yourChoicesColumnName), Value="Unknown")

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @ChrisSullivan,

    Do you want to set the default value of the DataCard2 as "Unknown" based on Radio selected value?

    Could you please tell me that if the DataCard2 has a Combo Box or a Dropdown?

    If it is a Combo Box, set the DefaultSelectedItems property as below:

    If(
     rdoHardCopy.Selected.Value = "No",
     {Value: "Unknown"},
     ThisItem.'Provide location'
    )

    If it is a Dropdown, set the Default property as below:

    If(
     rdoHardCopy.Selected.Value = "No",
     "Unknown",ThisItem.'Provide location'.Value
    )

    Hope it could help you.

    Regards,

    Qi

  • ChrisSullivan Profile Picture
    101 on at
    If(
     rdoHardCopy.SelectedText.Value = "No",
     LookUp(
     Choices([@'INITIAL QUESTIONNAIRE_1'].'Provide Data type'),
     Value = "Unknown"
     ),
     Parent.Default
    )

    This worked! Thanks CNT

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @ChrisSullivan  Glad to help! 😊

     

    Please remember to give a 👍 and accept the solution as it will be help others in the future.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 339 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard