Default Radio Input Value

I’m having some trouble figuring out how to properly use some of the inputs ( to filter out displayed data. In the below notebook, I try using the radio input to allow the reader to select a team to display the box score data in a table. The notebook functions fine once you select one of the options, but it’s default option isn’t updating the filtered dataset, and so it throws an error until you do so.

I expected setting the value: ‘T.B’ in the radio input would make this the default, and create the filtered data, but this doesn’t work.

Here’s a suggestion:

I’m not sure what you were trying to accomplish with the synchronized view, but defining viewof selectedTeam as a radio input seems to fix the notebook.

This is excellent - thanks. I didn’t understand the synchronized view when I copied it from another notebook so it looks like I didn’t need it. Appreciate the solution!

1 Like