Custom Code Block - Edit Form

Can I add a custom code block to the edit form that pops up from a Table Block?
I’d like to modify the values that appear in the dropdown so there’s a smaller set of values there.
Table Block

For this scenario I’d suggest adding custom code to the page rather than in a block.