Reputation: 61
How programming field in xpages that able to accept other value not in the list?
Example field choice values list: 1. Fried Rice 2. Hot Dog 3. Beef Steak 4. Other...
How to simulate choice "Other" value? In Notes Client programming, we can use field, set accept value not in the list. How we can do it in xpages?
I have tried combobox, set values list, but it doesn't can accept value not in the list
Upvotes: 2
Views: 86
Reputation: 30960
Use xe:djComboBox
Dojo Combo Box from Extension Library. User can select values and input new values.
Example:
<xe:djComboBox id="djComboBox1" value="#{sessionScope.test}">
<xp:selectItem itemLabel="Maine"></xp:selectItem>
<xp:selectItem itemLabel="New Hampshire"></xp:selectItem>
<xp:selectItem itemLabel="Vermont"></xp:selectItem>
<xp:selectItem itemLabel="Massachusetts"></xp:selectItem>
<xp:selectItem itemLabel="Rhode Island"></xp:selectItem>
<xp:selectItem itemLabel="Connecticut"></xp:selectItem>
</xe:djComboBox>
Upvotes: 4