Select2_multiple field with same pivot table but different fields on the same form #320
Replies: 1 comment
-
Hi. I will close this discussion, Tabacitu answer on Stackoverflow cover this question:
Cheers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I-am in the process of making this project where I have two (or more) fields having the same pivot table and am using the relationship type on backpack. What i want to do is have these two fields work independently.
So let's say I want to have one field where the user selects thickness while in the other field the user can select shading suppose.
The issue is that these two fields have the same pivot table and the same relationship set up in the model and therefore only one of them would show up in the same form. I do know that HTML forms replace the fields with the same "name" attribute but I'd like to know how can i get around solving this issue and have the fields work independently maintaining the select2_multiple functionality.
Here's the link to my complete question which I posted on stackoverflow:
https://stackoverflow.com/questions/62728683/backpack-for-laravel-select2-multiple-field-with-same-pivot-table-but-different
P.S: Need to get this project done ASAP please suggest a solution.
Beta Was this translation helpful? Give feedback.
All reactions