How to use select2 to insert individually selecteds

QuestionsHow to use select2 to insert individually selecteds
c3media asked 6 years ago

Hello, Based in Integration -> Select2 tags, I need to insert each selected Name Id from foraign table individually; not separed by comma in the same col as actually.

 

Thanks,

 

1 Answers
Abu Ghufran Staff answered 6 years ago

In on_insert or on_update callback functions, you can split the posted data with “,” and you will get array of values selected in select2. Then you can do manual insert query to insert individually in separate table.

Refer grid events in docs.

PS: Apologies for the late reply. Ticket somehow remain unanswered.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

19 + 13 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?