This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
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?
Up. Please find this question on Stack Overflow aswel https://stackoverflow.com/questions/44407559/how-to-provide-a-datasource-for-select2-with-october-cms-via-the-built-in-ajax-f?noredirect=1#comment75814469_44407559
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.
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
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