Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
106 views

Autocomplete field where title is replaced with NID

I'm using Drupal 7 and I have made autocomplete function to be called on a field. File my_module.module: <?php function my_module_menu() { $items = array(); $items['/...
Marko Basta's user avatar
0 votes
1 answer
99 views

Have a child node inherit taxonomy from a parent during /node/add?

In Drupal 7, I have two content types: Parent Events with tags (like "outdoors" or "popular" or "suitable for kids"). "Tags" are taxonomy terms in a vocabulary,...
i-know-nothing's user avatar
1 vote
0 answers
60 views

Speed up AJAX loading on manage display page when moving fields among regions

When I'm switching my fields into different regions, it takes at least 20 seconds to make it change. I'm not able to change any other field while I wait. The only work around to this was to disable ...
Patoshi パトシ's user avatar
1 vote
3 answers
729 views

Autocomplete 403s when behind a proxy

I've got a virtualbox VM setup as a proxy server between Drupal to try to replicate a CDN causing errors on a client's machine. My current port is as follows: http://site-name.dd:9999 When I go to ...
Jack Ryan's user avatar
  • 2,307
0 votes
0 answers
72 views

Postal address field does not display in node

In drupal 7, I am using a 'postal address' field, with the widget 'Address autocomplete' for my node. A full address is obtained and saved every time a new node is created. However, it does not ...
Pierre_colin's user avatar
2 votes
2 answers
2k views

Server Configuration causes file uploads to fail

I have a drupal 7 site running on a Redhat shared hosting environment that uses zend php. I am having problems with file upload on content types and webforms that accepts various file types up to ...
nizz0k's user avatar
  • 1,182
0 votes
1 answer
172 views

Ajax not working inside hook_field_widget_form()

How to make ajax work inside hook_field_widget_form() /** * Implements hook_field_widget_form(). */ function test_field_widget_form($form, &$form_state, $field, $instance, $...
mks's user avatar
  • 86
1 vote
1 answer
199 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 ...
UltraBob's user avatar
  • 1,339
0 votes
1 answer
604 views

After any AJAX form event, all Entity Reference Fields are blank

After any AJAX event in the form (Upload image, add a new field collection row etc.) All Entity Reference fields go blank. I have multiple entity reference fields, all using a view to get list ...
Collins's user avatar
  • 2,393
1 vote
0 answers
379 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 ...
tenken's user avatar
  • 18.4k
0 votes
1 answer
222 views

Invalid datetime format for a field never submitted?

I'm working my the edit page for my mobile app which is fetching data from a Drupal site. I'm fetching data, I'm editing it, and submitting it. However, when submitting back, I'm getting Internal ...
Kartagis's user avatar
  • 610
1 vote
1 answer
104 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 ...
Ahmad's user avatar
  • 2,845
0 votes
1 answer
95 views

How to show dynamic text on node/add form with Panels (using AJAX)?

I am using Panels. There is an entity reference field (project) on a content type. It shows the title of nodes where the user is the creator using the viewreference module. On the node/add form, is ...
user24957's user avatar
  • 341
8 votes
3 answers
7k views

Show node IDs along with titles in Entity reference 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 ...
neemu's user avatar
  • 81
0 votes
3 answers
791 views

address field hides if country is changed

I have used Address field module for storing user address. Also I have used Customer Profile Type UI for adding customer profile. I have added customer profile field in the user page by adding ...
user avatar
1 vote
0 answers
66 views

Node creation using rules with AJAX?

Im am using rules to create a node entity when the user saves a status from the statuses module. The Status message is copied into the title of the new node and then this title is shown in my view. I'...
Ed Wilson's user avatar
2 votes
4 answers
7k 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 ...
Anon Ymous's user avatar
0 votes
4 answers
3k views

How to run jquery codes before and after ajax call?

I want to create a loading code while the ajax call is not yet complete, AND enable my jquery code after calling the ajax of drupal form. The ajax I'm referring to is the "Add new field/Add more" of ...
Danz's user avatar
  • 439
3 votes
1 answer
2k 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.
giorgio79's user avatar
  • 4,651
0 votes
1 answer
882 views

Using ajax in my entityform

I have a content type called Area and another content type called apartment that has a reference to area. I have an Investment form (using entityform module) in which users select which area; after ...
Majid Abdolhosseini's user avatar
0 votes
1 answer
686 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 ...
pal4life's user avatar
  • 554
0 votes
0 answers
94 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 ...
screaming SiLENCE's user avatar
0 votes
1 answer
805 views

Create and pre-populate a mutiple value field in field collection on new node with ajax call

This question is in the same area as a previous I asked (How to create (& pre-populate) multiple “field collection” fields on an ajax call), but with the extra level of complexity that I'm trying ...
Dominic Woodman's user avatar
4 votes
2 answers
2k views

How to create (& pre-populate) multiple “field collection” fields on an ajax call

This is an extension of this question - "How to pre-populate multiple "field collection" fields in node form" I'm trying to do the same thing, but I'm trying to get it to work on an ajax ...
Dominic Woodman's user avatar
0 votes
2 answers
1k views

How to create a quote request form?

I'm building a Drupal site that uses nodes to display a number of high value products. There are no e-commerce features due to the high value of the products being offered for sale, but the client ...
JamiePatt's user avatar
  • 375
2 votes
3 answers
897 views

Disable ordering in entity reference (user)

I have an entity reference of widget type = autocomplete. It's a collection of users where you can add multiple users. Now I would like to disable the ordering of the users. So you can't order the ...
nielsv's user avatar
  • 786
0 votes
1 answer
49 views

Entity Reference - Not required to be in database

I have a content type Proposal with a entity reference field Proposed by. This is an autocomplete field that targets Users in the application. You can give in multiple users that are in the ...
nielsv's user avatar
  • 786
1 vote
1 answer
1k views

Field Collection module Ajax error

I'm utilizing the Field Collection module to allow me to associate objects of one content type (say, Authors) with another content type (say, Books). When viewing the Edit page for one of my specific ...
Alex Coleman's user avatar
0 votes
1 answer
905 views

Autocomplete entity reference - Required to select entity

I'm having problems with a required field that is an entity reference. This is my case: I have a content type advertisement that has an entity reference product, what is an autocomplete widget. The ...
nielsv's user avatar
  • 786
1 vote
1 answer
554 views

Form is not rebuilding on "Add another item" in unlimited value entity reference field

In a content type I have a field of type 'entity reference', 'auto complete' widget with unlimited values. The whole idea was to give user an option to add referenced node items but only once, Hence ...
Jeet's user avatar
  • 721
0 votes
1 answer
2k views

How to Compute fields on the fly

I have content type having fields as follows. first second third Sum1 (first + second +third) - computed filed xxxx yyyy zzzz Sum2 (xxxx+yyyy+zzzz) - computed field Grand Total (sum1 + sum2) ...
Krishna Mohan's user avatar
0 votes
3 answers
2k views

ON/OFF toggle as a custom view field

I have a table view output of node data. The node type has a list field called status. Status is set to accept a single value. It has the following option to select from: Inactive Active Submitted ...
sisko's user avatar
  • 1,728
2 votes
3 answers
5k views

How to get a field in a exposed filter criteria as an autocomplete?

In a view the field which has widget autocomplete does not get an option to select as dropdown or autocomplete in exposed filter criteria. I have a field in a content type which has following ...
harshal's user avatar
  • 4,354
2 votes
1 answer
1k views

How to use entityform and ajax_form_entity in a modal window?

Just getting started with the entityforms module (and it looks sweet!). I want to create a 'contact us' link that displays the form in a modal window, submits and then closes the window. There is ...
doub1ejack's user avatar
0 votes
1 answer
1k views

Ajaxy entity reference views filter by entity reference view

I have two content types that share a taxonomy (Size). On content type A, I have an "entity reference" to content type B in the form of a checkbox widget. What I want: On the node creation form, ...
CCMonkey's user avatar
  • 160
1 vote
2 answers
2k views

Entity reference to user doesn't work without 'administer users' permission

EDIT: I have most probably found out the reason thy it works (or doesn't work actually) this way. The problem is that I don't have legitimate access to the user node that is being edited. I only '...
Petrroll's user avatar
  • 531
3 votes
5 answers
5k views

Update values using AJAX in field widget form

Similar questions: Ajax wrapper replacement on a field widget form how to create an AJAX field widget Problem: Get FIELD_NAME and DELTA in AJAX callback function? (See below) What is done: ...
user avatar
2 votes
1 answer
640 views

autofill from taxonomy term fields

I'm trying to connect a field of a taxonomy term to a field in a content type, something like this: Auto-Fill from on content type to another I tried this on a node and it's working, but now I have ...
luca's user avatar
  • 31
0 votes
2 answers
602 views

How do I remove gid from og_group_ref field's autocomplete?

At first I thought this was a job for hook_preprocess_field(); however, it then occurred to me that this field is populated by an ajax look up. Where might be the best place to remove the group id ...
Rick's user avatar
  • 2,984
0 votes
1 answer
753 views

How to implement a multiple (AJAX) field collection with the FAPI

Background: I have a field colleciton containing two fields. This field collection is attached to a profile entity and its number set to unlimited. I am currently retrieving this field from the ...
B2F's user avatar
  • 937
0 votes
0 answers
443 views

Autocomplete does not work on the server

I have a organization text field on the user profile. I wrote a module that uses dbpedia's lookup services to generate an autocomplete list on the field. The code works on my local instance using ...
Jayaram's user avatar
  • 791
2 votes
1 answer
138 views

Non-autocomplete Widget for Term Reference Fields on Content Type

The available options at the moment are Autocomplete term widget (tagging), Select list and Check boxes/radio buttons, but I'd like to use a widget without autocomplete. Thanks in advance. EDIT: To ...
Alexander Sandberg's user avatar
1 vote
0 answers
749 views

Ajax wrapper replacement on a field widget form

I'm having ajax-related problem while building my custom compound field. The problem is similar to this post. The field widget consist of a textfield (autocomplete) and markup. They are defined like ...
no more drupal's user avatar
1 vote
1 answer
1k views

The "Add another item" button doesn't work with field groups

I am working on a site that uses a lot of horizontal field groups. I am having a problem where any fields that sit in a field group and have "unlimited" set for the number of entries is unable to use ...
Patrick's user avatar
  • 1,310
4 votes
2 answers
3k views

Ajax on Add another item of field collection

I'm calling an Ajax function in a field collection. But after hitting 'Add another item' button, form looses Ajax effect. I want to bind the Ajax with form event after clicking on 'Add another item' ...
sneha.kamble's user avatar
0 votes
0 answers
592 views

Taxonomy autocomplete - show results of words starting with letters written

I am having hard time to explain this but this is the case: I have taxonomy with 80000 terms (country/city). When i type for example "N" or "NE" or "NEW" i get results with terms that contain all ...
Azz Kawa's user avatar
  • 749
0 votes
1 answer
182 views

Best way to deal with long list

I've an entity called "guy" with a field "location" and i've 9-10.000 location that i want to reference. I must use a simple list (1|bla, 2|blabla) or an entity reference field that target the ...
user11743's user avatar
8 votes
2 answers
4k views

Slow "Add another item" with unlimited valued fields

In Drupal 7, when you have node with field which has unlimited values (let's say, image field), "add another item" response time becomes very slow after you added 10 - 20 items. How do you fight this ...
Timur Kamanin's user avatar
0 votes
1 answer
734 views

Turn location CCK 'city' field into taxonomy autocomplete field

I am using the "Taxonomize Location" module to automatically save all Location CCK Field submissions into the "location" taxonomy. Terms in the location taxonomy are saved in 3 layers: Country -> ...
deinqwertz's user avatar
6 votes
1 answer
764 views

Correct AJAX practices

I have got content types called 'Online Discussion', henceforth referred to as OD and a content type called 'Online Discussion Reply', henceforth referred to as ODR. Having Entity References (drupal....
user avatar