New answers tagged


Thanks to Clive for his help ! To active the autocomplete, I should re-attach the autocomplete behavior after added my new element. nodeSelectorWidget: function (args) { // Adding the autocomplete field var createField = function() { var input = document.createElement('input'); input.classList.add('form-autocomplete'); ...


Solved The problem was in my .theme file where it was unsetting the core jQuery library. The problem code: function theme_js_alter(&$javascript, \Drupal\Core\Asset\AttachedAssetsInterface $assets) { unset($javascript['core/assets/vendor/jquery/jquery.min.js']); } Thanks to @AlfredArmstrong for providing the suggestion of reviewing the php files


For entity reference/images fields you have to include them to have their "full" data: The response will contain an object called included where you'll find that data, Details for a image field: { "type": "file--file", "id": "cc6ef625-8549-...

Top 50 recent answers are included