cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kvss
Microsoft
Microsoft

update the dropdown based on radio button selection

Having two radio buttons 

 

Test

Sample

 

In drop down based on selection of radio button , values {choices)should update from the column of table to drop down.

I have tried on change of radio button ,throwing errors

 

If("Test" in Radio1.Selected.Value, UpdateContext({ActionType:'Test Type'}));
If("Sample" in Radio1.Selected.Value, UpdateContext({ActionType:'Sample Type'}));

 

 

kvss_0-1627988180726.png

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi @kvss,

Could you please tell me that if you have a Choice or Choices column in the Dataverse table?

Do you want to populate the dropdown control based on the Radio button?

If you have a Choice column, you should modify the formula you set the Update for the data card as below:

DataCardValue4.Selected.value 
Best Regards,
Qi

View solution in original post

5 REPLIES 5
WarrenBelz
Super User
Super User

Hi @kvss ,

Try this

UpdateContext(
   {
      ActionType: 
      Switch(
         Radio1.Selected.Value,
         "Test",
         "Test Type",
         "Sample",
         "Sample Type"
      )
   }
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

kvss
Microsoft
Microsoft

It didnt work.

I have updated with the below:

on dropdown items I have updated with If(ActionType, Choices('Sample Type'),Choices('Test Type')), I am facing issue with update property like Expected option set value with this DataCardValue4.SelectedItems.value 

@kvss ,

I was assuming SharePoint here – it is obviously DataVerse. I will leave this to others as I do not use it.

v-qiaqi-msft
Community Support
Community Support

Hi @kvss,

Could you please tell me that if you have a Choice or Choices column in the Dataverse table?

Do you want to populate the dropdown control based on the Radio button?

If you have a Choice column, you should modify the formula you set the Update for the data card as below:

DataCardValue4.Selected.value 
Best Regards,
Qi

View solution in original post

v-qiaqi-msft
Community Support
Community Support

Hi @kvss,

Have you solved your problem?

If my solution solved you problem, please consider marking it as answer. If not, please provide more details.

Best Regards,
Qi

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,728)