This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

joseph.d
joseph.d

From what I understand, the backend dropdown form widget is using "select2" which has an ajax data source feature (https://select2.github.io/examples.html#data-ajax)

Is there a way to take advantage of this feature using the built-in dropdown widget in October, or is my only option to build a new form widget based on select2 myself?

dragontree
urgotto22588
chocolata
Ilesyt
Ilesyt

Follow this tutorial: https://www.youtube.com/watch?v=_STBANlmtoM&index=13&list=PLUBR53Dw-Ef-X-_A1KLy41r2QArCBy4rM&t=531s

And the following several videos.

PS: I went into the select2 css files and changed the class name of select2 to s2. Otherwise it would interfere with the inbuilt octobercms one.

chocolata
chocolata

Hi guys, I've had an answer on the question I posed on Stack Overflow. I've provided an extensive example in my question, based on the solution provided by Samuel. https://stackoverflow.com/questions/44407559/how-to-provide-a-datasource-for-select2-with-october-cms-via-the-built-in-ajax-f

larryb
larryb

Has anyone ever figured out how to get this to work? The example in October docs doesn't seem to work right away.

1-7 of 7

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.