cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
modernoddity
Helper III
Helper III

Set drop down default to the selected value from radio button

Is there a way to set the default value of a drop down menu to the selected value of a radio button? 

I tried RadioButton1.Selected.Value but it gives me the "expecting table" error. 
I tried RadioButton1.SelectedText.... same result. 

 

9 REPLIES 9
PowerAddict
Super User
Super User

Check these screenshots (I set the default property of the dropdown to Radio1.Selected.Value)Radio1.PNGRadio2.PNGRadio3.PNG

 

If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

I tried that but keep getting an error. Not sure if it matters but the drop down is inside an edit form. 

Makes sense. The only other question I have is how are you populating the dropdown (items property) and the radio button(items property)? That should help me give you a final answer. 

Hi @modernoddity ,

 

What is the data source of this edit form control? And is this dropdown control a choice column for SharePoint list? If so, please use below formula in the DefaultSelectedItems property of the dropdown control instead:

{
        Value: NU_Computer.Selected.Value,
        '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"}
        

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-monli-msft 

 

I added that to the Default section (DefaultSelectedItems is not an option for this drop down) and I'm no longer getting an error but it's also not changing when the radio button selection changes. 

 

The drop down is inside an edit form and the data source is a Sharepoint list. 

@PowerAddict 

 

The items property of the drop down is a sharepoint choice column. The drop down itself is inside an edit form. 

The same sharepoint choice column populates the radio button selection options. 

Hi @modernoddity ,

 

Is this dropdown control a choice column for SharePoint list? What is Items property for this dropdown control?

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-monli-msft 

 

Yes, the drop down is a choice column in Sharepoint list. 

 

The drop down is in an edit form and the items property is: Choices('Config Sheet'.Computer)

 

The radio button items property is also: Choices('Config Sheet'.Computer)

 

Hi @modernoddity ,

 

Then please set the Default property of this Radio control to:

ThisItem.Computer.Value

 

Regards,

Mona 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

<
Users online (4,789)