SOVED - Editor + Select2 (on update doesn' t show the previous value)
SOVED - Editor + Select2 (on update doesn' t show the previous value)
I'm traying to use Editor with Select2, everything looks good, but, when I try to update/edit, the Select show me all the list from the beginning of the list, not with the previous selected value.
Script - editor
 "fields": [             
           {
               "label": "Proveedor",
                "name": "cargo.provider",
                "type": "select2",
           },
 ]
Server side
->fields(
        Field::inst( 'cargo.provider' )->options( 'providers', 'providers.id', 'name' ),
        Field::inst( 'providers.name' )                                 
    )
How can I get the selected value?
PS: Using "type": "select", works fine, but I need the search feature of Select2
This discussion has been closed.
            
Replies
my apologies i found the answer..
http://datatables.net/forums/discussion/32689/select2-4-0-1
No worries. Good to hear you have it working now.
Allan