Skip to content

[V9] Use bootstrap select instead of selectize #2

@biplobice

Description

@biplobice

<script type="text/javascript">
$(function () {
$('input[data-select-and-add=<?=$akID?>]').selectize({
plugins: ['remove_button'],
valueField: 'id',
labelField: 'label',
searchField: 'label',
options: <?=json_encode($optionGroups)?>,
items: <?=json_encode($visibleGroups)?>,
openOnFocus: true,
create: false,
createFilter: function (input) {
return input.length >= 1;
},
<?php if ($allowMultiple) { ?>
delimiter: ',',
maxItems: 500,
<?php } else { ?>
maxItems: 1,
<?php } ?>
});
});
</script>

Selectize has been removed in v9. Please update form.php to support v9. Refer to the core select attribute for guidance.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions