How to access data from a table inside a UI Page?

jglez1
Mega Guru

Hi folks, so I'm rendering a modal using a UI Page. I have a <select> element with a bunch of <option> elements. So right now, the values are hardcoded but my boss wants to make it so these options are configurable (can be turned off and on) without needing a dev.

 

So I created a table with a bunch of records that match these <option> elements. The records have an "active" column that is either true or false. If the value is true, then the record will be loaded in the UI Page as an <option> element.

 

This makes it so a non-tech savvy person can go in and change the value to false, and that option is now turned off. Does anyone know how to do that in a UI Page?

 

Thank you.