The text-input-choice class allows arbitrary text input augmented with a choice like an option-pane. The user can edit the text after selecting it from the list.
(example-edit-file "capi/elements/text-input-choice")
CAPI User Guide and Reference Manual (Unix version) - 3 Aug 2017