cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
AmitSaraswat
Level: Powered On

Dropdown onchange want to set radio control value

Hi All,

 

I want to update the radio button control value on change event of dropdown

 

Thanks,

Amit Saraswat

2 ACCEPTED SOLUTIONS

Accepted Solutions
aprildunnam
Level 10

Re: Dropdown onchange want to set radio control value

One way to accomplish this is the following:

 

On the OnChange property of your Dropdown set a variable to denote if the dropdown was changed or what it was set to.  You can do this with UpdateContext({varX:true}).  Then on your radio button Default Value property do an If statement to check the value of that variable and set the default value accordingly.

View solution in original post

Community Support Team
Community Support Team

Re: Dropdown onchange want to set radio control value

Hi @AmitSaraswat,

 

which part (property) that you would like to update with the Radio button, based on the Dropdown control?

 

The Radio items property, or the actual Selected Value?

 

For the Items property, we could filter the original source with the filter or search funciton, for example, the items property of the Radio control could be configured to:

Filter(Source, Valuepart=Dropdown.Selected.Value)

For the Radio control default selected value, the formula could be configured as below:

If(Dropdown1.Selected.Value="1","1","2")

Let me know if this works.

 

Regards,

Michael

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

View solution in original post

3 REPLIES 3
aprildunnam
Level 10

Re: Dropdown onchange want to set radio control value

One way to accomplish this is the following:

 

On the OnChange property of your Dropdown set a variable to denote if the dropdown was changed or what it was set to.  You can do this with UpdateContext({varX:true}).  Then on your radio button Default Value property do an If statement to check the value of that variable and set the default value accordingly.

View solution in original post

Community Support Team
Community Support Team

Re: Dropdown onchange want to set radio control value

Hi @AmitSaraswat,

 

which part (property) that you would like to update with the Radio button, based on the Dropdown control?

 

The Radio items property, or the actual Selected Value?

 

For the Items property, we could filter the original source with the filter or search funciton, for example, the items property of the Radio control could be configured to:

Filter(Source, Valuepart=Dropdown.Selected.Value)

For the Radio control default selected value, the formula could be configured as below:

If(Dropdown1.Selected.Value="1","1","2")

Let me know if this works.

 

Regards,

Michael

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

View solution in original post

Community Support Team
Community Support Team

Re: Dropdown onchange want to set radio control value

Hi @AmitSaraswat,

 

Do you need any further help on this topic?

 

Regards,

Michael

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

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,102)