How to use select2 to insert individually selecteds

QuestionsHow to use select2 to insert individually selecteds
c3media asked 2 months 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 1 week 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
PHP Grid Framework
 
Your Answer

18 + 14 =

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 / 5. Vote count:

As you found this post useful...

Follow us on social media!

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

Let us improve this post!