The widget tag has no wiki summary.
1
vote
2answers
14 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
16 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
19 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
4 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
30 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
10 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
0answers
23 views
webcam_field_widget is not working with field collection?
I used 'webcam_field_widget' module in my current project for capturing user photo through web-cam and for user information I used filed collection. At 1st time web camera functionality working fine ...
0
votes
0answers
25 views
In a widget settings form, how do I detect that the user has clicked my custom submit button on form build?
I'm adding some settings to a content type widget settings form that I want to be in a collapsed fieldset. These settings include a custom form submit button which lets the user upload a file or ...
0
votes
1answer
39 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
29 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
82 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
72 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 ...
0
votes
1answer
122 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 ...
0
votes
1answer
74 views
How can I call javascript from another site?
I recently started working in collaboration with another drupal website, and we are trying to figure out how to get some of their content embedded into my site. They sent my some embed code for a ...
0
votes
0answers
112 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 ...
0
votes
0answers
63 views
Autocomplete widget - save id of suggested and accepted value
I'm writing a custom text field and widget module with ajax autocomplete from scratch. I want the lookup to work on one column, but I want another column's value (the looked-up item's id) to be saved ...
1
vote
1answer
28 views
Can I override/modify an existing hook_widget_info for an existing CCK field type
I want to modify the default Link field, so that instead of just a text field it will always have a Validate Button next to it (for active checking).
I don't want to create a new Widget, I want to ...
1
vote
2answers
38 views
How to create invisible widget in Drupal
I need to create an auto-generated value for every user on my site. No one should be able to edit this field so it should not appear on the user edit form. Is there a better way to achive this than ...
0
votes
0answers
230 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
0answers
102 views
Multiple values in one text field
I need a grid of items, which users can choose via checkboxes. I only need to save the ID of the checkboxes, which is max 3 chars. Since I won't be querying on the field, I wanted to store those ...
1
vote
2answers
36 views
Rated user interests
I would like to create rated inteterests for each user.
Until now what I have is a taxonomy term vocabulary defined and a field in the user account attached to this vocabulary.
Until here what a user ...
0
votes
3answers
78 views
Communicating with Drupal from Javascript/Jquery (Drupal 7)
I am trying to create a dynamically populated select list field widget. This widget consists of three Jquery multiple selects. When the user makes a selection from the first select list I need to ...
2
votes
0answers
33 views
how to preview a youtube video thumbnail when media is selected in a form?
I've created a form in which people can load a video from YouTube, DailyMotion or Viméo. I use the Media file selector widget.
When I chose a vimeo video, everything is ok, i can see the thumbnail of ...
0
votes
1answer
53 views
is autopostback available in jQuery or Ajax
for Drupal 6 sites. I know that autopostback is an ASP.NET piece of functionality. Is there something similar that I can apply in Drupal 6. I want to apply autopostback to a drop-down select list in a ...
0
votes
1answer
271 views
Drupal Calendars widget link to list of day's events
I am using Drupal Calendar to manage an events calendar on a new site. Currently when you click on a day in the widget it takes the user to the calendar page that shows a small list of the titles. Is ...
2
votes
0answers
74 views
Widget for custom CCK field without hook_elements
I'm writing my own module for a custom CCK field, and want to define whole widget in the hook_widget() hook only, without using hook_elements() with #process callback. But there is a big problem:
a) ...
1
vote
1answer
352 views
Better tagging / taxonomy reference widget
The Term Reference field type has three stock widget types:
Select List
Check boxes/radio buttons
Autocomplete term widget (tagging)
We need an alternative to the autocomplete widget that shows ...
1
vote
0answers
167 views
entity reference as part of a fieldset of a field_widget_form?
I want create quite a few graphs and display them on my site. I am currently using the highcharts api/drupal module, but i'd like to be able to extend this to any js plotting library. To do this I ...
1
vote
1answer
37 views
Add message to Add Article page
In the Add Article page (while editing), how do I add a custom message right above or below the Save/Preview buttons?
0
votes
0answers
24 views
Custom forms using the field api
I'm using hook_field_widget_form to create a custom menu with JavaScript. My form has a hidden input tag, as well as a menu which updates said tag. How can I tie it in to drupal so it updates based on ...
0
votes
0answers
117 views
Dependent drop down from referencies
I need to create dependent dropdown lists (like hierarchical select) from several referenced entity types (term_reference, node_reference, user_reference).
To be more clear:
- BMW
- - X1
- - - E84
- ...
5
votes
1answer
640 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 ...
0
votes
1answer
390 views
Cascading taxonomy term selection widget
To be honest, I'm not sure if cascading is the right term, and if it's not then this can just be edited in the future for clarity.
I need a taxonomy term widget that is a drop-down list, and all that ...
1
vote
1answer
356 views
how to add a class to the widget pager of views slideshow
I want to add a class to the widget pager of views slideshow. I found the function in the file /theme/views_slideshow.theme.inc wich theme the wrapper of the widget
function ...
1
vote
1answer
94 views
How to get the list of all entity reference fields and their params?
I'm trying to build a new widget for the entity reference module.
(nested checkboxes = tree according to entity references between nodes)
The only answer I'm looking for is :
"How to get the list of ...
0
votes
0answers
18 views
Works on one Node Type but not another
Trying to figure out why this "Rate" widget will work on one node type but not another.
This is related to this question, but I feel I've gotten sufficient more information to generate an entirely ...
0
votes
3answers
684 views
How to add a field widget for multiple file upload?
Is there a module that provides a multiple file upload (Drag and Drop) widget? If there isn't, how can I build one? Will it require a special setup for the server stack (LAMP)?
0
votes
0answers
123 views
Show node body fields for entity reference checkboxes widget?
I need to show the body field of the nodes next to their checkboxes in an entity reference field widget (default is just their node titles). Is there a way to do that without writing a new widget?
2
votes
5answers
1k views
Widget type radio buttons and N/A
I have a field so-called "Status" in my custome contact type. It is a List (integer) and widget type is "Radio buttons". I added two values for allowed values list:
0|Sold
1|Available
Default ...
2
votes
2answers
331 views
Change entity reference field widget type based on role?
EDIT: See the original post below for context. I think I've figured out how to target the field's widget, and to do this based on the admin role, but the module doesn't seem to be recognizing the ...
1
vote
0answers
69 views
How do I react to my field's widget autocomplete selection?
I'm building a custom field with autocomplete. The autocomplete runs against an array of objects that I keep in my modules PHP code. An item looks like:
$phrases['s5'] = array(
'title' => ...
2
votes
2answers
713 views
What are the steps to create a custom widget based on taxonomy_select?
I need to create a widget for fields of type "taxonomy_term_reference". The widget "taxonomy_select" is very nearly what I need to build, but needs some modification. I have seen examples that start ...
0
votes
4answers
411 views
how to change widget type of title field in content type Drupal 7
I am trying to change the widget type for title field in content type (currently it's a text field as default). Now I want to change to node reference.
0
votes
1answer
135 views
cannot validate custom field widget for user profile field when editing node
I have defined a field widget and set #element_validate to validate the input. This works fine when I create an account, but when I update the account, the field is not validated and does not even ...
1
vote
0answers
87 views
Render drupal field widget in custom page [duplicate]
Possible Duplicate:
Is displaying a working Field Widget Form on its own possible?
I have my module called mymodule.
In mymodule.module I have:
function mymodule_menu() {
...
3
votes
2answers
1k views
Modify widget in Entity Reference field select box?
I am using an Entity Reference field to refer to users in another content type. The default widgets for the field use the User Name as the label for the dropdown, but I'd like to change that to ...
0
votes
1answer
176 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 ...
2
votes
1answer
720 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' ...
2
votes
1answer
450 views
How do I change a widget's markup?
I need to create another widget which acts exactly like a text field, but contains a button and link next to the element. What's the best way to accomplish this?
I thought of:
Copying the Text ...
0
votes
2answers
1k views
how to populate select list using hook_form_alter()?
I wanted to add values to a select list dynamically. Another module generates an array from a web service and I want to use those values to populate a select list in a form using hook_form_alter.
I ...