2

I want to have a list (select) without the default -none- option using w2ui forms.

How can I remove it so only the items I put in there?

Coomie
  • 4,832
  • 3
  • 32
  • 44

1 Answers1

2

When defining your fields in the form, add showNone: false

{ name: 'field', type: 'list', options: { 
      items: [{ id: 0, txt: 'Adams, John' }, { id: 1, text: 'Adams2, John' }], 
      showNone: false }
 },

In a similar way you can remove - none - for regular fields. See http://w2ui.com/web/docs/form/fields for more information.

vitmalina
  • 1,829
  • 1
  • 14
  • 7