Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynamically Populate Select:Options?

I am stuck..Working with Calendars.. Trying to populate a Select's "Option" list with the Calendar Names.

Using Fitbit Studio, here's what I'm pulling into the "settings.jsx"

let calendars = JSON.parse(props.settingsStorage.getItem('calendars'));

produces

{"id":"4","sourceId":"1","title":"Peter Falk"},{"id":"21","sourceId":"1","title":"redacted1@example.com"},{"id":"22","sourceId":"22","title":"redacted2@example.com"}]

I've tried using forEach with .push but best I can do is get the correct number of "Selection Dots" to show up... Can't populate the Name with anything... It's always blank..

End goal is to select a Single Calendar, toggle won't work as I'm just trying to get an All Day event from the selected Calendar.... Any Insights?

 

 

Best Answer
2 REPLIES 2

Did you ever figure this one out?

Best Answer
0 Votes

Negative... Gave up and just hard coded the calendar id in..

Best Answer
0 Votes