Backpack is best Package,
i have on big issue how to pass some parameter in select2_from_ajax
is it possible ?
my case:
let i am inserting City. may table has following fields: protected$fillable = ['name', 'country_id','state_id','status'];
i want display state on change of country_id only select state of select country
is it possible ?
hi @developerpratika can you rephrase your issue please.
thanks
I think you want kind of a dependent dropdown right?
select2_from_ajax content changing depending on your first selection?
@adbmdp you are right
Hi @developerpratika ,
In that case, there's no pre-built solution for you. I recommend you create a custom field type starting from the select2_from_ajax, and place some javascript there that sends the value of your first selection through the AJAX call.
You can then filter the results inside the CrudController method, using that variable.
Hope it helps. Cheers!
ok thanks for your support . i did same it working great :)
Hi @developerpratika
I am new in BackPack and i have same requirement e.g ( Firstly user select any country from First select option >> on the behalf of selected country id, I have to display all states of that country in another Select ( drop-down list ) Could you please help me to sort out this. by sharing some step or dummy code for the same.
Thanks in Adv.