Predefined suggestions fetched using AJAX.

learn more… | top users | synonyms

0
votes
1answer
12 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
28 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 ...
6
votes
2answers
261 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
10 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
12 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
8 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
8 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
24 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
31 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
77 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
28 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
25 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
48 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
20 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
19 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
14 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
64 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 ...
0
votes
0answers
56 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
133 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
76 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
49 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
14 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
131 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
115 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 ...
0
votes
0answers
22 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
16 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
30 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
45 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
106 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
180 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
50 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
19 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
88 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
54 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 ...
0
votes
0answers
17 views

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

I tried to look for a solution and wasn't successful: 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 ...
0
votes
0answers
60 views

Autocomplete adds [nid:<nid>] to node references

I am using the References module for my content types. There are two content types: A and B. Nodes of one type have a reference to nodes of the other type. I have a node titled ABC and I want to ...
2
votes
1answer
40 views

How to sort autocomplete results by post date?

I have a content type named "News" which contains a node reference field named "Related News" in autocomplete mode. Does anyone knows how to sort the results when i write something? I need to get the ...
1
vote
1answer
63 views

How to set value to auto-complete field after form submission?

I have a dependent auto-complete form field in my custom module. After submission the form the auto-complete field shows above the result output. Now I want that submitted value should become default ...
2
votes
0answers
174 views

How to alter entity reference autocomplete field drupal 7

I have a node which have entity reference autocomplete widget field. I am referencing node of particular content type. But when I come to select node from entity reference field it shows all node ...
1
vote
1answer
32 views

Callback function on block

In order to create a search block with autocomplete, I'm trying to use a callback function. But it doesn't work with my module. This module is implemented on my homepage which is ...
0
votes
2answers
112 views

An AJAX HTTP request terminated abnormally During auto complete text box in Drupal

I have autocomplete textbox which populate the suggestion based on search text. Steps:- User type in search text box. User press enter instead of waiting for autocomplete ajax to respond It comes ...
1
vote
2answers
111 views

Apache Solr own grouping in autocomplete

The apache solr autocomplete module don't work for me. I try to achive a relative complex autocomplete, my target is to achive this on the autocomplete: Search for "searchword": -Facet for ...
0
votes
0answers
31 views

how to fill some fields depent on the value of a list box

remember the create password page of Drupal! while you are entering characters it tells you how string is your password! now I want to have something like this in a list box but a bit different. I ...
0
votes
2answers
33 views

How to show filtered content as suggestion of “reference autocomplete field” based on a field value of reference content

Say, one content type is "CONCEPT" and it has a field named 'STATUS'. Another content type is "Article" and it has a node-reference auto-complete field named 'CONCEPT FROM'. Now I want to see only ...
0
votes
1answer
126 views

Auto Increment value for field collection

I have a field collection group to which I am importing values using Field Collection Feeds Importer. This requires a unique identifier field within the field collection. This has posed an issue where ...
0
votes
0answers
43 views

Pretty Tag display for entityreference (autocomplete)

I'm using entity reference and entity reference autocreate to make entities on the fly if they don't exist. Works like a charm. Now I would like to make a nicer tag display. The standard comma ...
0
votes
0answers
125 views

How to auto create taxonomy terms?

In one of my custom modules a bundle of a custom entity type has a taxonomy reference field. I am using Autocomplete Deluxe for managing tags. I want Drupal to add terms to the vocabulary if they ...