Predefined suggestions fetched using AJAX.

learn more… | top users | synonyms

0
votes
2answers
41 views

Why is my javascript not being executed?

I have a Drupal 8 form and I'm applying some custom javascript to it. I've added a JS file, and a libraries file for my module containing a reference to it, but the code doesn't run. in module_name/...
0
votes
0answers
25 views

jQuery autocomplete error

I read the various posts in how to use the jquery autocomplete in drupal 7. But I still get the error: query.ui.autocomplete.html.js:11 Uncaught TypeError: Cannot read property 'autocomplete' of ...
0
votes
0answers
16 views

Address Autocomplete and Geolocation - Google Map not working together

I have a content type in which I have added a Geolocation field with widget 'Google Map' selected. On same form I am using Addressfield module with widget 'Addressfield Autocomplete'. Similar fields ...
0
votes
1answer
17 views

Adding functionality to a form button that would load user details / corresponding field data for “autofill”

I have a form that has a address field holding inputs for: name address phone etc. I've added a button on this form/field: Load my data which I would like to load user details/data. On click it ...
0
votes
1answer
19 views

Make custom textfield autocomplete compatible with slashes?

I have a form which uses a textfield with a custom autocomplete path and it works just as it should. However, I get some unexpected behavior when the title/search string contains a backslash (e.g. '10/...
2
votes
0answers
18 views

Node reference field auto complete in views

I have content type master program and slave program. Slave program have node reference field with master program I created a view for filter and show the slave program list For node reference ...
0
votes
0answers
11 views

Entity reference widget or display that is linkable, filterable, draggable, flaggable and addable?

I have content types "Discussions" & "Tasks". On discussion is a field_task that references (many) "Tasks". Each task has a binary field (or global flag) "Finished". Some of the referenced tasks ...
0
votes
0answers
21 views

term reference custom autocomplete field only populated with first data item

All, We added a custom field to the user profile called "interests and skills", with type Term Reference, widget type Autocomplete term widget (tagging). The vocabulary assigned to that field exists ...
1
vote
1answer
24 views

Term Reference Autocomplete field that searches fields besides name

Is there any way to have a term reference autocomplete field search other fields than just the title? In my case I have a organizations vocabulary with the taxonomy name and an acronym. The main ...
1
vote
0answers
25 views

Autocomplete field invisible

It seems like my data inside the autocomplete field is invisble for non-admins. I tried targetting the autocomplete with CSS but nothing seemed to work #autocomplete li:hover, #autocomplete li:...
1
vote
0answers
49 views

Show more in Autocomplete reference content than the title (id)

In the Edit Content Page I try to see in the autocomplete field of type reference not only the title (node reference + ID) but also another field of my chose. Can I do that in Drupal 8 trough a view? ...
1
vote
1answer
15 views

Restrict vocabulary on entity_autocomplete form field targeting taxonomy terms

I'm creating a form with an entity_autocomplete field targeting taxonomy terms, and I would like to restrict it to a certain vocabulary. Is there a way to do that with '#selection_settings'? I can't ...
2
votes
1answer
25 views

Autocomplete won't work for entity reference field unless User > Administer Users permission is granted

I have an entity reference field (users) on a node in D8, and the autocomplete suggestions won't show unless the User > Administer Users permission is granted to the role. I'm trying to let event ...
0
votes
0answers
14 views

Turning on autocomplete in View gives validation error

I have a view with an exposed filter that references a field from a relationship. The filter works fine if I simply type in values. However, if I turn on autocomplete for the filter, the view no ...
1
vote
1answer
35 views

How to use autocomplete text field in fieldset?

I want to use a textbox with autocomplete features. I have gone through the drupal form API and found the solution at here. It's working fine if I am using this directoly in the form fields. But it'...
3
votes
1answer
64 views

How to change the autocomplete for a user reference to show First/Last name instead of username?

I want to add a user reference field to an "event" content type, and reference the user who will present. But I wonder how to change the entity reference - I've tried using the "filter by an entity ...
0
votes
1answer
28 views

Search API Solr Autocomplete no results when more than x Nodes indexed

I encounter a strange behavior on a site I'm working on. I use Search API views exposed form for autocomplete. My nodes reference nodes of another content type. The title of this referenced node's ...
0
votes
0answers
21 views

How To Alter Nodequeue or EntityQueue search Autocomplete

I want to use nodequeue or entityqueue in Drupal 7 and want the autocomplete search for a given queue to use a custom field other than the node title. Is there a way to do this without hacking the ...
1
vote
1answer
37 views

Create a View which shows Nodes AND Taxonomy Terms

I am working with Search Autocomplete to create a suggestion list which includes nodes and taxonomy terms. Is there a way to include both entity types within a single view? Thanks for your time.
2
votes
4answers
203 views

Adding autocomplete for text-field

I tried to implement an autocomplete in text-field for drupal 8 in my custom module all I wanted was to fetch and display the likely title I typed via autocomplete so declared a public function ...
0
votes
0answers
25 views

Taxonomy Autocomplete - field not found

If I understand correctly field_info_field loads field information from cache. The problem occurs when trying to reach a taxonomy autocomplete for field abc:def where abcis a field collection and def ...
0
votes
1answer
21 views

How to get Address Field to display correctly with Autocomplete?

I want to create a postal field for addresses in the Philippines. I have set up a sandbox site with a content type that has just one field, of type addressfield and using the autocomplete widget. ...
0
votes
1answer
98 views

Custom autocomplete field

I am trying to create an autocomplete field for users. The following code is fine for username searches but the requirement is for a search by any part of the user's first and last name. $form['user'...
0
votes
1answer
42 views

Can phpStorm autocomplete method in Drupal::service?

Are there anyway to get phpStorm to autocomplete \Drupal::service("xxxx")->.. [https://api.drupal.org/api/drupal/core!core.services.yml/8 For complete reference of Drupal8 service 1 For example ...
0
votes
1answer
22 views

AJAXX AutoComplete joins and unions causing error

I am a bit out of my depth here. I have successfully implemented my own autocomplete field of an entityform, the following link was my roadmap Textfield that uses AutoComplete. But I am trying to do ...
0
votes
0answers
21 views

Differentiating multiple exposed filters on same page

I have been struggling with this issue and this thread shed a lot of light on the issue I'm fighting. However, unlike in the question above, I have two exposed filters from the same view on the same ...
1
vote
1answer
38 views

Facetapi combined filter of city and zip code

I am using address field module with search api and facetapi modules. I want one filter of two fields, city and zip code. Which will be an autocomplete field. I have used the Search API Combined ...
0
votes
0answers
45 views

Set Values in Term reference autocomplete deluxe fields

I am using Taxonomy auto complete deluxe module widget for term reference field. I have requirement to set some default values for the field, I tried below $form[field_name][LANGUAGE_NONE]['#...
0
votes
2answers
36 views

Parent term suggestion on entering the child term in term reference field?

I have a term reference field which has the widget Autocomplete term widget (tagging). I want the functionality like, when a user type a child term in that autocomplete field, the system should return ...
1
vote
2answers
140 views

How to enable Database search & autocomplete live search?

Found a great article of how to enable live search on drupal 7 http://www.stevepolitodesign.com/blog/create-live-search-results-search-you-type-drupal But seems all modules are not yet available for ...
1
vote
1answer
31 views

8 autocomplete pass current value to function

I am trying to use autocomplete in a custom form, but I don't know how to pass the current value of the field to the autocomplete function. This is my form element: $form['gs_name'] = [ '#type'...
0
votes
0answers
22 views

Node reference - Autocomplete - title + fields in the autocomplete HOW TO [duplicate]

2 content types : node type A. node type B. referencing node type A. Most of the type A. nodes share the same title but aren't the same at all. I need to add some fields in the autocomplete ...
0
votes
2answers
65 views

Form API: Autocomplete Field in Chrome and Safari

I'm working on a custom webform component to essentially look up entity properties in an autocomplete field. All works perfectly in Firefox, but I'm just seeing an plain old textfield in Chrome and ...
7
votes
2answers
595 views

Show node IDs along with titles in Entityreference Autocomplete list

I'll like to add this functionality to the autocomplete widget in Entityreference field to show node ID next to the titles in the dropdown list. The reason behind the idea is to differentiate between ...
0
votes
0answers
23 views

Autocomplete fields: Append items to the field, not replace?

I have a form with an autocomplete field that pulls items from a taxonomy. I'm using a Bootstrap theme on the site, but things are otherwise ordinary. The field works, except that when I select a ...
1
vote
0answers
59 views

Drupal 7: #autocomplete_path save id to hidden field

Basically I have the same problem as described here: Drupal 7: autocomplete return nid and name, change behaviour. I have a text input with ajax autocomplete: $form['rmanager_id'] = array( "#...
0
votes
0answers
15 views

View with Single Filter and multiple arguments combined with OR and autocomplete

I'm seriously working on a big problem. I have an autocomplete single filter exposed to users. This works fine :-) But i want to improve this filter to search with more than only one argument, ...
0
votes
0answers
15 views

Biblio module custom fields format

I'm using biblio module for a website in Drupal 7. I need to use custom fields for certain items and I need these custom fields to autocomplete therefore I set them up in the biblio field config page ...
0
votes
1answer
35 views

How can I get Autocomplete behave as in most of the sites out there?

I have a form built with FORM Api. It has a text field, with Autocomplete. I also have another form, with several fields, some of them with Autocomplete. It works well, but I have to press Enter Key ...
0
votes
1answer
36 views

Two Views with autocomplete filters display no result

I have 2 views-blocks with autocomplete filters, both filters are for the title field. And autocomplete filters display no result when the views are placed on the same page. How to make them to not ...
1
vote
2answers
241 views

How do I use the #autocomplete_route_name property?

I created a custom form and I want add a "users" reference field. I see here I must use the property autocomplete_route_name, but what value must I set? $form['project']['users'] = array( '#type' ...
0
votes
0answers
36 views

How do I enable autocomplete on fields inside tableselect

I have form which outputs tableselect. The tableselect have many textfields which should be autocomplete. The problem is that textfields never become autocomplete fields and even ...
0
votes
1answer
140 views

Autofill billing information on checkout page

I have placed billing information in the checkout pane. I want to autofill the billing information. There is a similar question in stackexchange Autofill billing Information on checkout page in Drupal ...
1
vote
1answer
31 views

Autocomplete field search start character limitation

How can I limit the number of characters on when the search starts send a request to the server?
1
vote
0answers
30 views

entityreference_autocomplete — Return list that contains

I am quite new to the D7 Form API, but nevertheless I've got the basics up and running... I have a custom content type (A) and I want users to be able to submit some Information, which in turn will ...
0
votes
1answer
17 views

Is it good practice to override simple db_query or EntityFieldQuery with a View

I am using several autocomplete fields in a form. To retrieve the data, I have used db_query for very simple queries, EntityFieldQuery for more complex, until I found one that is somehow convoluted, ...
0
votes
0answers
10 views

Scrollbars in Ajax Autossugest for form fields - Drupal 7

I have an autosuggest field in a form, and the list of suggested results is very long. The list goes outside the visible part of the browser screen. How can I add a scrollbars to the list?
1
vote
2answers
749 views

Add a “autocomplete” field in a buildForm

How do I add an autocomplete field in a class that extends FormBase? I created a custom module, which uses a class that extends FormBase. I want to programmatically create a form field that ...
1
vote
0answers
140 views

Text input with Autocomplete for facets field in search page using solr search api?

As my terms and values for multi-valued fields are growing, search page is taking too much time to load all values under facet filter. In order to improve the performance and give better User ...
0
votes
3answers
501 views

Address field module autofill city and state when zip code is entered

In the United States, cities are split up by a unique 5 digit zip codes (postal code). This postal code in turn tells what city and state it is from. Therefore it is redundant to type the city and ...