Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
6 views

How can users poll in contents?

I'd like to make authenticated users to make a question and poll in any contents(without poll contents).I guess poll widget is good. I think 「Rate」module is good for what I wanna do, but by only Rate ...
0
votes
1answer
19 views

Drop-down select instead of selection box in custom field widget

I am creating a custom field for phone numbers. The field creates a phone record that contains the type of phone contact (work, home, etc), as well as the number and an extension... much like Apple's ...
0
votes
0answers
27 views

Custom widget for field collection with multiple values

I need to create a custom field widget for a field collection. My field collection is called Article and has the fields "Title", "Summary" and "Description". My content type has the field of type ...
0
votes
0answers
7 views

Display custom field setting

I have altered a field using the following code, It basically adds a setting to the list field type called tooltip_text so that I can render the contents of this field in the widget. function ...
0
votes
0answers
25 views

Custom element with widget, error appears

I create custom select widget for list_text element and use custom element in hook_field_widget_form(). When I submit form appears error Illegal string offset 'value' in list_field_is_empty(). After ...
0
votes
0answers
21 views

Multiple Field , same ajax callback

I created a custom field. The hook_field_widget_form has an submit element with an ajax callback: //Add more $element['add_zone'] = array( '#type' => 'submit', '#name' => ...
2
votes
0answers
61 views

Taxonomy autocomplete widget with term depth settings

Is there a module (or custom code) to implement a widget for taxonomy autocomplete (>=1k terms) having term depth settings? Settings could be like to control term level variable depth, rules and ...
0
votes
2answers
52 views

Custom field widget: hook_field_is_empty()

I'm creating a custom module that has implemented these hooks: <?php /** * Implements hook_field_widget_info(). */ function MYMODULE_field_hook_info() { return array( 'CUSTOM_field' => ...
0
votes
0answers
25 views

Is it possible to get Entity Connect and Entity Reference View Widget to work together and if so how?

It seems to me this should be a fairly common problem, but I can't seem to find and answer despite looking! Here is my use case: I have two types of content: Activity and Participants. When I create ...
0
votes
1answer
27 views

Custom field widget that displays a button with JS action and a hidden textbox

I have no background in working with the Drupal API, so answers will have to explain it like I'm a child. I am trying to create a custom field module. The widget should show a button with JS onClick ...
0
votes
2answers
48 views

Attach js file to every page w/term reference widget in Drupal 8

I have begun trying to port a small, simple module that I maintain to Drupal 8. It was originally written (not by me) in Drupal 6 and used hook_init() in combination with drupal_add_js() to attach ...
0
votes
1answer
19 views

Custom field type with imagefield

I'm creating a widget with an image field. But I keep writing 0 to the database. But i need the fid to be saved. I know I can manipulate the data with hook_field_presave(). But the items array only ...
0
votes
1answer
26 views

Custom field not saving updates

I've created a widget which has two textfields and a hidden uniqid. One of these fields is for the name of an item, the other is the number of people who can be involved in that item. These save ...
1
vote
2answers
68 views

Insert image tag in checkboxes list

A Form having a form element of term reference with checkboxes widget. I want to insert a image tag with each taxonomy term name, For example here is the html of taxonomy term reference < div ...
0
votes
0answers
19 views

Using content field widget in custom block?

I'm trying to figure out an easy way to implement a content field type (image_field) with a widget (imagefield_crop) on a custom block. The block currently has an upload image feature, but I want to ...
0
votes
1answer
63 views

How can I configure CKEditor to show content in 'plain text editor'?

I would like to configure my CKEditor to show content that I edit in plain text editor by default as I have some widgets on my site (e.g. Twitter) that get removed by CKEditor's rendering to rich text ...
0
votes
3answers
252 views

Error: Undefined index: form_build_id in ajax_get_form()

I have a custom widget form that I use on a node reference field. The form outputs a list of nodes with a pager (jQuery Infinite Scroll plugin to append next results using the pager links) which can ...
1
vote
1answer
26 views

Select list with input fields

I would like to have the following field widgets: I would like to give the user the possibility to give in 4 nicknames and select the default one that will be shown to other users. Is there a ...
0
votes
1answer
23 views

Make Conditional Field work with Price widget

I would like to know if there's a way to make the Conditional field module here work with the Price widget. For example, I want to allow the user to input a price when he checks something with a ...
1
vote
1answer
48 views

Disabled date field on node form stops it from saving

I have a date field on a drupal node edit form using the pop-up calendar widget. When certain things happen on my site I have to disable some fields on that node edit form, including the date. ...
0
votes
1answer
70 views

Widgetkit Drupal alternative

Is there module that will enable user to create galleries and than embed them into article content, and display them in lightbox fashion? For example, I can create a gallery in some UI, configure it ...
0
votes
1answer
157 views

Adding a widget to CKEditor 4.3.5

I've installed CKEditor 4.3.5 on my Drupal 7 by simply copying it into the sites/all/libraries folder as described here: ...
1
vote
1answer
13 views

Pager on Widget Form Query

The module is a small custom widget for the entity reference field. It creates a list of nodes that allows for multiple selections. Is it possible to paginate the results of the query even though ...
0
votes
0answers
35 views

Custom widget taxonomy illegal value

When it goes trough taxonomy_field_validate on submit i get the error: illegal value. When i check th $items wich get passed to the function i see tath they got the wrong format: $item = array( 0 => ...
0
votes
0answers
22 views

Custom taxonomy widget save values

I build am building a custom widget for taxonomy field, but i am stuck at the following step: saving the values. My widget has 3 form elemenst, 1 dropdown, 2 checkboxlists. How can i save the ...
0
votes
1answer
81 views

Drupal widget not saving field values

I'm new to Drupal but have been given the task of creating a widget. The module loads, fields are displayed, but when I create some content the form values are not being stored when the content is ...
0
votes
0answers
11 views

How to avoid greeting user with an error on image widget update

Drupal 7 Using the code at What hook to use changing image field description, I adapted it to make Alternate Text be a required field once the image widget displayed it. Here's my modified code: ...
0
votes
1answer
179 views

Entity Reference View Widget Ajax Modal Error

I am using the Entity Reference View widget. But having some issues with it. The widget is showing up with a Add Item button on the node creation form, however when i click on that Add Item button it ...
0
votes
0answers
34 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
49 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 ...
0
votes
0answers
13 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
141 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
28 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
30 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
71 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
90 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
24 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
219 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
548 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
126 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
705 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
149 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
31 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
300 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
49 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
163 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
330 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
224 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
1k 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
244 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 ...