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.
See this example:
(example-edit-file "capi/elements/text-input-choice")
CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:19