I would like to enable a user to choose whether (a) they would add a field value by choosing from a dropdown list or (b) enter a new value not contained in the list in an ordinary text input field. The field itself is obligatory.
Is it possible to do this in one go? Obviously both the select field and the input text field would have to have the same name, and that doesn't work.
The only solution I can think of right now is to do this in steps:
- add record: show dropdown list for field.
- preview record: if no list item was selected, then show input text field for field
Alternatives? (Javascript?)
kellner
Is it possible to do this in one go? Obviously both the select field and the input text field would have to have the same name, and that doesn't work.
The only solution I can think of right now is to do this in steps:
- add record: show dropdown list for field.
- preview record: if no list item was selected, then show input text field for field
Alternatives? (Javascript?)
kellner