editor select field where

editor select field where

ofirk12ofirk12 Posts: 15Questions: 8Answers: 1

Hi, i am trying to do select to field but i want that not all the data from the db will be taken so i am try to do where but its not work( i want to take all without the ID=1 ) AND i get empty one

Field::inst( 'Groups.Name AS Group')
->options( Options::inst()
->table( 'Groups' )
->value( 'ID' )
->label( 'Name' )
->where('ID', 1, '!=' )
)

Thanks

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.