Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
5 votes
1 answer
2k views

How can I #ajax in multiple elements on a single custom field widget?

I have created a custom field type that has 3 columns – product, color, and quantity. Ideally, the user will only see 1 dropdown from which to pick a product. Picking a product should then load the ...
Charlie Schliesser's user avatar
2 votes
3 answers
6k views

Entity Reference auto complete user name with different field

I'm using the entity reference module to associate users with a particular content type. I'm using the auto-complete widget (tag-style). By default, it uses the user name when auto-completing users. ...
Lester Peabody's user avatar
2 votes
2 answers
886 views

An error which appears in Autocomplete taxonomy fields

Did someone ever note this annoying D7 taxonomy error? It jumps out when I seem to "pass" a certain amount of terms or characters. The error is as follows: An AJAX HTTP request terminated ...
Beni aharon's user avatar
2 votes
1 answer
1k views

displaying fields of selected taxonomy term

I'm trying to create a minimalistic ordering system. No need for a full fledged solution like Commerce or UC in this case. Orders are represented as nodes (or maybe as custom entities using ECK, ...
Dmitry Vyal's user avatar
1 vote
1 answer
706 views

Use or Extend module functionallity

Recently we started a proyect where we need to implement a webpage that should be able to manage google maps markers and locations, with aditional info on them. However the requirement was to do it as ...
Pablo's user avatar
  • 203
3 votes
2 answers
1k views

form with taxonomy autocomplete widget throws error upon submit: Invalid argument supplied for foreach()

I have a custom form with this field in it: $form['first']['field_city'] = array( '#title' => t('Woonplaats'), '#type' => 'textfield', '#size' => 25, '#autocomplete_path' =&...
FLY's user avatar
  • 1,939
2 votes
2 answers
599 views

Can I use Node Reference Field as a Text Field if there are no references?

I'm creating a content type Event. I want to reference the node of another content type Venue, so the user will be able to click to the venue node from the event. To reference the venue on the Event ...
chrisck's user avatar
  • 481
4 votes
1 answer
2k views

How can I run javascript code after an item added or removed from an unlimited value field?

I am trying to add some js functionality to an unlimited value field in Drupal 7, it works on page load, but disappears after adding or removing an item, and I did not find a way to notify my code ...
Nord's user avatar
  • 43
3 votes
1 answer
740 views

Custom widget field only saves first letter, disappears on edit

I'm trying to create a custom module for Drupal 7 that makes two widgets available for Text fields. They autocomplete from a database table using #autocomplete_path. The autocomplete works fine and ...
BenjaminRH's user avatar
7 votes
3 answers
9k views

Autocomplete textfield widget?

Does anybody know of a Drupal 7 autocomplete widget for textfields? I've tried Autocomplete Widgets, but the "Autocomplete for allowed values list" widget from that doesn't seem to exist in Drupal 7 --...
BenjaminRH's user avatar
1 vote
1 answer
763 views

How to make a node reference field that can also behave as a text field if no reference exists

I'm looking for a flexibly way to allow a user to input a a field, but also to have that field be a node node reference if the the node reference already exists. In other words, lets say I have a ...
user379468's user avatar
  • 2,520
1 vote
1 answer
250 views

Media/file repository - asset autocomplete widget?

Does anyone know of a module which would install an autocomplete widget for file and image fields on admin-side? The purpose of it would be to allow admin/editor to re-use a reference to an already ...
no more drupal's user avatar
6 votes
2 answers
3k views

Selected Checkboxes (taxonomy) populate a new select list with values of selected boxes

* question answered: Help needed with hook_node_submit in custom module to save data * In Drupal 7, I have a custom content type. In this, there is a multi select term reference to select categories ...
tecjam's user avatar
  • 1,151
4 votes
2 answers
1k views

How to trigger JavaScript/jQuery on AJAX-enabled ImageField submit?

I'm trying to trigger a JavaScript event when an AJAX-enabled ImageField submit button is clicked. I've tried variations on delegate(), submit(), and click(), but no joy. This is something similar ...
g_thom's user avatar
  • 672

1
2