- πΊπΈUnited States mtovey
Attaching a patch that changes the module js as @sic outlined earlier. This then allows subsequent js code with a reference to the HTML widget element to access the properties/methods from the MultipleWidget setup method. For example:
let widgetObject = jQuery('#autocomplete-deluxe-input').data('autocomplete_deluxe_widget');
let itemInit = {
label: 'Create a new tag: #Sample tag',
value: 'Sample tag',
newTerm: true
};
widgetObject.addValue(itemInit); - πΊπΈUnited States eadamse
This is a re-roll of the patch from #6 π¬ How to programmatically add terms to field using Javascript? Active for version ^2.1. You can utilize the widgetObject using the jQuery `data` method as described there.