The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
6 views

How to add node reference url data field in panel

I have two content types and i have installed node reference url widget module. There is field called 'channel' as a node reference. Now i want to display the field data of 'channel' (which is a link) ...
1
vote
1answer
20 views

Paginate results of entity reference widget type

I have entity reference field with checkboxes/radio as the widget type. The issue is the I have hundreds of nodes and this results in a having a big list. Is there a way to paginate the results or ...
-2
votes
1answer
14 views

Set widget type programtically [closed]

In a hook_update_n() I want to set the widget type of a field programmatic. How would I do this?
0
votes
0answers
8 views

Make a mini-panel an embedded widget for an external site?

Anyone know of a way to take a mini-panel and make it into a user embeddable web widget that they can place on an external site? Sort of what Web Widget does with views but with mini-panels.
0
votes
0answers
25 views

Custom widget type for entity reference

I have an entityreference where I would like to change the widget that is shown. Rather than just showing a select list. I would like to show a select list with some optgroup added as the list is ...
0
votes
0answers
19 views

(simple?) new field formatter (for custom field type) does not save data

I am trying to make my own field type. I order to do it I modify field_example from drupal examples. I added new widget_form (declared also in widget_info). The problem is, value is not saved in the ...
0
votes
0answers
7 views

Change field widget for a specific form

I have a content type with a field. I need to change the widget applied to the field only for a specific form. How i can made this? I have found methods to alter the widget but not to CHANGE a ...
0
votes
1answer
39 views

custom entityreference widget not saving field

I am trying to create a custom widget for the entity reference field type which will be a hidden field with its value set to the current page's node id. This is my code: function ...
0
votes
1answer
45 views

Trying to create a widget that submits a form and takes you to another search page

The original example http://www.trellon.com/content/blog/apachesolr-and-facetapi uses an auto submitter, which I don't want. I'm trying to modify it to use checkboxes and submit with a submit button, ...
0
votes
0answers
13 views

New Apache Solr Widget

So there is by default the show links widget, and the show checkboxes with links. All I want is a list of checkboxes and a submit button for the particular facet I want. How do I do that?
0
votes
1answer
41 views

how to use hook_field_widget_form

I am trying to understand how the addressfield module is using hook_field_widget_form. When is it called and where are its parameters coming from? When I do a printout of its $instance parameter, I ...
0
votes
1answer
115 views

Entity Reference View Widget problem with add selective

I am using a content type which uses a field as "Views" Entity Reference View Widget. When I click "add selective" or "add .. and close" in form of this widget, it's just redirect to ...
0
votes
2answers
63 views

Drupal 7 Module to Set image src to a URL

I am trying to do something pretty basic but I just cannot find the right module. All I want to do is have a field type or widget that I can use in a content type that will set the image tag's src ...
3
votes
2answers
184 views

Programmatically alter taxonomy term tree options

I have a taxonomy term reference field in a form. This field has many options and I'm using the term_reference_tree module to display them. I'm trying to add a filter to this form so it only displays ...
1
vote
1answer
65 views

Issue with custom widget

I have a custom auto-complete widget that I use to create a custom field that is used to create a custom content type in a custom module. I have hook_field_widget_info function ...
0
votes
0answers
25 views

Inserting a widget into a drupal panel

I am designing a website for the school where I work. The school makes use of a one-way communication system, called School Communicator. Communicator content includes calendar, news, galleries and ...
1
vote
1answer
246 views

“Check boxes/radio buttons” Widget is NOT displaying content in Drupal7

In Drupal 7 Admin, I added a choice field of Type "List (text)" and widget "Check boxes/radio buttons", in which I see the list of check boxes in the Admin. But I don't see anything in the Live ...
0
votes
0answers
37 views

Adding config option to a field widget and saving to DB

I'm trying to modify a core field widget by adding a checkbox to it and then somehow saving the value of the checkbox in a new table (created by my module). I'm able to add my checkbox pretty easily ...
0
votes
1answer
137 views

How to add a tooltip popup containing social share widgets in a views table

I have a views table containing a number of columns, one contains a small icon. I would like to have a tool tip open (containing the usual share widgets: twitter & facebook) when the image is ...
1
vote
1answer
201 views

Adding a Select List (Text) field to an entity bundle programmatically

I've been searching for hours, but can't seem to find a solution to this. Now, I'm able to create a plain old text field as such as this: In moduleA.install: if (!field_info_field('field_myfield')) ...
1
vote
0answers
185 views

What is the correct way to use fieldset in hook_field_widget_form?

Task: Create a new widget for a field using hook_field_widget_form containing fieldsets. Problem: Column names (as defined in module.install) must match the form elements (keys of $element ...
1
vote
0answers
888 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: ...
1
vote
1answer
115 views

How to disable multiple cardinality for a custom field

I've made a custom module that creates a new field type. Any single-cardinality instances of this field work fine. However, multi-cardinality instances of this field will not pass my ...
0
votes
0answers
121 views

#element_validate function is called on sub-elements of a form; form items are created by themselves

I'm using a method from 'Drupal 7 Module Development', where they declare a wrapper form element where a user inputs a value, and then the value is split up by the #element_validate function and saved ...
1
vote
1answer
83 views

User's field autocomplete/autosuggest widget [closed]

I have a user field where multiple users can be added. Currently, I am using the auto-complete widget. Is there a module that allows you to customize what can be additionally shown on autocomplete? I ...
1
vote
1answer
143 views

Theming a Field Collection Widget

Is it possible to theme the Field Collection widget for just one field? The example I am looking for is a list of text fields. I need some of the text fields to be in two columns instead of one long ...
0
votes
1answer
141 views

Adding value to multi-delta textfield programmatically

I have a phone field in a form, which is just a textfield with its default widget. I'm trying (and failing) to add values to this field programmatically through ajax calls. I have an ajax call ...
1
vote
2answers
47 views

How can I get the current widgets name of a node?

I'd like to know if it is possible to get the current widgets of a node ? field_info_widget_types() shows all the widget But I'd like to get the widgets the current page is using and not all of them ...
0
votes
0answers
7 views

How to use field widget to create field in code? [duplicate]

Is there possibility to use field widgets to create these kinds of fields? I can't find any information how to use it while form creating. I found something like this ...
0
votes
0answers
12 views

Add Widget to Form? [duplicate]

I right now want to use the nice date widget(from Date Mod) in a form. The issue is the Date API, from what I found, does not provide a form type like the widget. Also, I need 10 reputation in order ...
0
votes
1answer
106 views

Use multiple widget types for one field

I would like to have different field widgets for distinct forms. Is there a way to define multiple widget types for a single field? Here's my case: on the create content form, the widget for the field ...
2
votes
1answer
320 views

In Drupal 7, how do I display my taxonomy term fields while creating content when using a checkbox field?

I currently have the following below as a taxonomy reference field in one of my content types as a checkbox list widget during content creation. Currently its only showing the term name, but I want ...
1
vote
0answers
202 views

Allow two widgets for a taxonomy term reference field (hierarchical select dropdown and autocomplete)?

This may be impossible, but here's my situation. I have a taxonomy called Hobbies which includes a rather large number of terms (300) in a hierarchy. In their profiles, users have a term reference ...
0
votes
1answer
313 views

how to add field_image widget (imagefield crop) to a custom form api [duplicate]

How can i add to my custom form api in my custom module the default widget from field_image? I am using imagefield_crop module widget and it works in node/add form, but i cannot replicate it in my ...
2
votes
1answer
153 views

Dynamically change widget type in node edit form

I have a content type with a geofield. I'm using an Openlayers Map as the input Widget. The map allows the user to place a marker and it populates the geofield with the lon/lat coordinate. In some ...
1
vote
1answer
49 views

Altering widget produces error, “Class name must be a valid object or a string”

I'm using hook_field_widget_properties_alter to successfully set the widget type of some fields to 'options_select', but when trying to set others to entityreference_autocomplete, I get the error, ...
0
votes
1answer
356 views

Twitter Block 2.0 Widget not showing tweets

I have drupal 7.14 and have tried adding a timeline to the page. At first I tried entering the code of "embedded timelines" from Twitter after creating a widget. The problem: it only shows "Tweets by ...
0
votes
1answer
38 views

Create clone of cck field type 'text'

On a given content type, I want to use a textfield to store some specific type of data, for example a remote foobar identifier, like "~56578:ABC-xox" Eventually, I may want to tie my own widgets / ...
0
votes
1answer
100 views

Is “settings” needed in hook_field_widget_info()?

hook_field_formatter_info() and hook_field_widget_info return an array containing a "settings" index. I want to know when is it used. What happens if it is empty, or just omitted? My formatter and ...
1
vote
2answers
483 views

Can't choose checkboxes as field widget in d7

I recall in previous versions (Or maybe even this version and mine is just bugging) you could take text or int fields and supply a list of key|values and make checkboxes or a selectbox from it. The ...
1
vote
0answers
53 views

Node form elements don't work when inserted with Panels. Am I missing something?

What I have done: Created a Panels variant for viewing a node. Added a Context relationship to the node edit form. Added a form element with the relationship. Added the node save button with the ...
0
votes
0answers
74 views

#autocomplete_path becomes invalid with % placeholder

I'm writing an autocomplete-equipped field widget, and obviously, am installing a menu item $items['MYMODULE/autocomplete'] = array(...) to handle the search requests. For cleaner javascript code ...
0
votes
0answers
25 views

Parsing widget - field data import

I'm building my own module with a custom compound field and its own widget. In general it already works, but the Drupal multivalue interface makes the ergonomics at inputting the values very poor. I ...
0
votes
2answers
112 views

field_get_items / value when creating new content

I think I am about to lose my mind .. how in earths name do I get the value of a field in a widget during creation? I created a custom field widget, and during creation of new content I want to be ...
0
votes
0answers
15 views

Single input area widget

In D7, is it possible to create a custom field widget in the way Roles UI (admin/people/permissions/roles) does it, i.e with just a single input area at the very bottom, instead of n input sets for ...
0
votes
1answer
164 views

Is there a list of default fields and default widgets for drupal 7

Where can I a list of available (in the core) fields and widgets and their names so I can reference them when adding fields to my own node-type definitions ?
1
vote
1answer
68 views

using drupal_process_states()

I'm trying to add dependencies to a set of fields, such that only one of the set can ever contain a value at any given time. I see that drupal_process_states() does pretty much what I want, but I'd ...
1
vote
2answers
507 views

How to validate a custom widget?

I have created a custom widget that I would like to add some validation to. Specifically, if the widget is marked as required, to check that it actually has a value entered. I figure this should be ...
2
votes
2answers
344 views

How to display term images instead of term names in the term selection process?

I have a content type with a term reference field (check boxes widget, vocabulary: Category) from which every user has to choose one term to be attached to his node. I have also added an image field ...
1
vote
1answer
1k views

How to override the widget of an exposed form filter?

I have a view with a single filter criteria (let's call it category) exposed to the user. The user can also select multiple categories in for this view (standard view stuff). The category selection ...