How can I create programmatically-defined dropdown options?