Predefined suggestions fetched using AJAX.

learn more… | top users | synonyms

1
vote
4answers
61 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
11 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
0answers
21 views

Users Unable to Log on to Site Due to Infinite Loop (Edited)

When any users attempt to log on to site they are redirected to 'log on page' infinitely with no error message. Error log shows 1 error. The error persists as follows: '20-Apr-2016 21:52:37 UTC] ...
0
votes
1answer
4 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
49 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. ...
0
votes
1answer
24 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
21 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
14 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
28 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
20 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 ...
0
votes
2answers
27 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
70 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 ...
0
votes
1answer
21 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'] = [ ...
0
votes
0answers
21 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
49 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
377 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
19 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
37 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
13 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
13 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
31 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
35 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
140 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
37 views

Search Autocomplete only for selected content type

I am using modules Search Restrict with Search Autocomplete for my website search, I have restricted some content type for anonymous users, but when I type any words from restricted content type it's ...
0
votes
0answers
30 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
91 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
27 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
26 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
15 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
9 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
1answer
261 views

Add a “autocomplete” field in a buildForm

How add an autocomplete field in a class who extends FormBase ? I created a custom module, in the custom module there is a "Form" file (a class who extends FormBase) In the form file, I want create ...
1
vote
0answers
101 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
281 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 ...
0
votes
1answer
134 views

How to strip html from Elasticsearch and search API index?

I'm also using the search API autocomplete module. When I start typing, the autocomplete shows fields with html code. What settings do I need to set to get the index to store correctly?
1
vote
0answers
68 views

How to get autocomplete text widgets running on an iPad?

I have a form with a couple of standard Drupal autocomplete text widgets, which work fine in desktop browsers. However, they don't work in iPad/Safari -- the text field works properly, but I don't ...
1
vote
0answers
17 views

User relationship ignored in autocomplete entity reference view

I have a content type called "games". I also have a rol for users named "players" and another "trainer". Each player and trainer has a "team" also. This is very simple: when the user (a trainer) adds ...
1
vote
3answers
156 views

Can the Autocomplete delay be lowered in forms - Drupal 7

I have seen that the autocomplete widget in Forms API is started when I finish typing, or when there is a delay between one key hitting and the next one. Could it be configured so it is launched as ...
0
votes
0answers
318 views

How to resolve the jQuery error in the Search Autocomplete module?

I've just installed the Search Autocomplete module on my Drupal 7 site and try to get it to work. For this I also installed the jQuery update module and put it on jQuery 1.10. I didn't change any of ...
1
vote
0answers
36 views

Views Exposed Hierarchical Term Reference Autocomplete

I am trying to get the widget from this module https://www.drupal.org/project/term_ref_autocomplete to be available as the autocomplete widget for a taxonomy exposed filter on a view So far I have ...
1
vote
0answers
18 views

How should the search autocomplete module be configured to recognise spaces?

We're using the Search Autocomplete module to power a site search for users. Unfortunately, it doesn't like spaces in the username. Has anyone faced this and found a simple solution?
2
votes
1answer
38 views

On Autocomplete empty

I'm working on a project that I need to display some help text to the user if an autocomplete text comes back empty. Right now, the autocomplete is on a custom form, and I'm using an autocomplete ...
1
vote
2answers
53 views

Highlight autocomplete suggestions Drupal 7

I have a text field in a form, with autocomplete on. It works very well, but I cannot manage to find a way to highlight the letters in the suggested works. I found this hack in the autocomplete ...
1
vote
2answers
167 views

Results of autocomplete field in form depending on another field - Drupal 7

I have an autocomplete field in a Drupal form made with Form API. It works great, suggesting the data from a db_query. However, I would like to alter this db_query depending on the selection made in ...
3
votes
1answer
323 views

What is the difference between “Autocomplete” and “Autocomplete (Tags style)” field widget type?

What is the difference between an "autocomplete" and an "autocomplete (Tags style)" widget. These options are present when I add an entity reference field for example.
1
vote
0answers
56 views

Autocomplete field not working

I am making a form with autocomplete fields and I am not able to make it work (using an example code from a tutorial). The strange thing is that when I test it in my local drupal installation (bitnami ...
0
votes
0answers
24 views

It is possible to use a view formatted autocompletion json as the results of a FAPI textfield autocomplete?

I'm trying to do a fapi element autocomplete textfield using a view formated autocompletion json I mean, created a view which returns a json using a exposed filter criteria. The view as is works ...
2
votes
0answers
115 views

How to tell if user selected an autocomplete option in a form? [closed]

I created a form that has an autocomplete field of registered users and it is attached to nodes. In the form validation function I check if the string of the textfield is a valid user but in order to ...
0
votes
0answers
12 views

Exclude already added values from Entity Reference autocomplete field suggestions [duplicate]

Have field of Entity Reference type added to my content type, using autocomplete widget (unlimited values). While trying to add some values autocomplete shows all possible suggestions, including ones ...
0
votes
1answer
57 views

Unexpected Entity Reference Autocomplete behaviour

I'm using Entity API, Form API and Entity Reference Autocomplete in Drupal. I have a relationship between two types, clubs and courses, each club can have many courses so basically the table course ...
1
vote
0answers
25 views

Add new referenced entity if none was found using Inline Entity Form autocomplete

Is there any module or other solution for Drupal 7, that would extend Inline Entity Form to offer creation of new entity if none was found using autocomplete widget? Yes, I can cancel the form and ...