I.e. a regular select, but when I choose “Custom”, a text input appears, and I can use that instead, as in this crude drawing:
[Choice A ^]
becomes
[Custom ^] ____________
[Choice A ]
[Choice B ]
[Choice C ]
I can build it, but it’s a common pattern….
Note: I’m not talking about a combo box.
The trickier part here is, that presumably you want the
inputandselectbox to both use the same name, so whatever is processing the form data, won’t have to wonder what was selected, but instead just read the value from the one and same name.My take on this:
example: http://jsfiddle.net/niklasvh/Cq59K/ (have a look at the form submission data, uses same name for fields, and doesn’t have duplicate entries i.e. combo box and input box).