All Questions
64 questions
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['/...
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,...
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 ...
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 ...
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 ...
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 ...
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, $...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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'...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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) ...
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
...
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 ...
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 ...
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, ...
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 '...
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:
...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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' ...
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 ...
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 ...
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 ...
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 -> ...
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....