Fields are custom data that can be attached to Drupal entities.

learn more… | top users | synonyms (1)

1
vote
0answers
27 views

Only one video is visible from a multiple-value field

I have a field named hudl_videos for embedding videos and I have added multiple values to the field. I use the Embed and the Video modules where I can embed Youtube and Vimeo videos, but videos from ...
0
votes
1answer
10 views

How to map fields from content type to user Profile

I am using a content type named application There are some fields I like to map to the users profile to use them with panels. For example there are fields called: name -->textfield ...
0
votes
1answer
13 views

How to display a default value for minute field of Time fieldtype

I have a Time component in my webform. When I go to my form I see Hour is selected by default in the Hour field but I see 00 is selected by default in the Minute field. How I can set Minute as the ...
1
vote
2answers
15 views

How to get field Type from View

I have a view that takes fields and combines them or compares them and then gives me results in a new field (views conditional, global text etc..) but I need the TYPE of data that is returned. How can ...
0
votes
1answer
12 views

Change input method of “Description field” in “File” type

I have added a "File" field in a Content type. Now I can mark the option " Enable Description field". This "Description field" only let use direct input. I need to change this to a select field. I'm ...
0
votes
2answers
17 views

Duplicate value fields when creating relationships field collection of views

I have a problem need help. I created one field collection (unlimited value) for content type. Then I create 1 views to ren value fields in tables. I created relationship field collection for the that ...
0
votes
1answer
15 views

Drupal 6 exposing fields in views

So I have a product content type with a title field and a file upload field and I created a bulk operation to enable the user to upload a single file, selecting which titles to upload that file for. ...
0
votes
0answers
24 views

How to remove Activity field created by Time Tracker module

I may be misunderstanding the purpose of the Activity feature created by the Time Tracker module, but it would seem that I do not need it. I would like to remove it from the Time Tracker display on ...
0
votes
4answers
30 views

Hide fields on node edit form

Is it possible to hide fields on node edit form? I've tried Formatter Field but it doesn't work for me. I know it's possible in content type field display management but I need this functionality on ...
0
votes
1answer
21 views

How do customize the HTML output around a specific field using field.tpl

I in the middle of creating a content type with multiple fields. All the fields need to have all the extra markup removed, except for a specific 3 and I would like these to actually be wrapped in ...
0
votes
0answers
11 views

Ways of setting new value to a custom field in template.php file

I'm trying to set a field's value of a node in template.php file of a theme if the field value is empty but the problem is that when the field value is empty, I cannot make any field function work in ...
0
votes
0answers
7 views

Multiple select do not save for my custom field with custom widget

I'm trying to save multiple values from multi select option form which I created in the custom widget with: $element['labs'] = array( '#type' => 'select', '#options' => $list, '#multiple' ...
0
votes
0answers
9 views

Automatically import the information fields when creating new content

When working with drupal I have a problem but do not know how handle. I created a content type and then assign rights for anonymous users are allowed to create that content. In the type of content I ...
0
votes
0answers
4 views

Exposed Filter checkbox to check if a field has value

I have a textfield named PubMedID and on views I have to have an exposed on/off checkbox that will check if that PubMedID textfield has a value. When checked it should only show results that PubMedID ...
0
votes
1answer
8 views

Instance based date field granularity

In my web application (Drupal 7) I'm using a date field with year-month-day granularity, but I would like, for a specific content type, to add also hours and minutes. Is this possible to achieve? ...
-1
votes
0answers
14 views

How to restrict making a custom fields in Content type? [closed]

I have a content type, in that user can create only limited custom fields. Is it possible?
2
votes
1answer
31 views

Can I add my own if statement to node.tpl to test if field groups are null?

I have a content type with 4 different field-groups utilizing the Field Group module. I want to test to see if those groups are empty and render them and some additional HTML if they are NOT empty, ...
1
vote
2answers
26 views

How to update content type field programmatically

I try to update content type field MYFIELD with code $update = db_update('field_data_field_MYFIELD') -> fields(array('field_MYFIELD_value' => $result)) -> condition('entity_id', ...
2
votes
2answers
62 views

How do I access field data in Twig?

I have a list field for a custom block type that looks like this: left|Align left right|Align right I can access the key in Twig by doing something like this: {% block content %} {{ ...
1
vote
2answers
24 views

Hide row in view if Content: Edit link field is empty

I have a page view that table format. I have Content: Edit link field. I want to hide the row that contains that field empty. The following is a screen shot for Content: Edit link settings regarding ...
0
votes
0answers
11 views

Custom field on user form submittting incorrect value

I've added a custom field to our user form called Opt Out. It's displayed on the registration form as a single checkbox (boolean, single on/off in the Manage Fields section of Account Settings.) When ...
0
votes
0answers
7 views

Multilingual field in form_alter

I have a form_alter that needs to act upon multilingual fields. In order to have the fields load with proper language I do this at top of the form_alter: global $language; But then, in the fields ...
0
votes
1answer
7 views

How to customize the “Remove” button in a multiple field (collection)

So, you have a field (collection, it's the same there) defined with unlimited values, and thus have an "add more" button and a row per distinct value. Let's call the field termine. Now you have to ...
0
votes
1answer
22 views

Change user field value to value of another user field

I manage a basketball league site with two main user roles, "commissioner" and "player". Every player on the site is assigned to both a Tuesday team (field_team) and a Friday team (field_team2) via a ...
0
votes
1answer
32 views

Layout of multiple items of the same field in Panels node template

My content type is a preview of a music album so the fields include mp3 file and text fields about the track (title etc). I am using a panels node template which looks like this This works fine for ...
1
vote
1answer
31 views

How to show field in snippet?

I use PHP filter module, and write this in other field in my node: <?php $node = node_load(52); $field = field_view_field('node', $node, 'myfield'); print $field; ?> It doesnt work. ...
0
votes
1answer
24 views

Datatables Module not Sorting all Columns

I am using the DataTables module (https://www.drupal.org/project/datatables). The sorting option does not work for all columns, and I am not sure why. I'd like the ability to have all columns sortable ...
-1
votes
0answers
13 views

Disable HTML5 spellcheck on Drupal fields? [on hold]

Any easy ways of disabling spellcheck on some text fields? I have some very large texts and the browser is hanging on them. Here is more info on the spellcheck option ...
0
votes
0answers
12 views

How to override a file field on webform form?

I have a webform with a file field printed on an overrided webform template like this: <div class="field-archivos"><?php print drupal_render($form['submitted']['archivos']); ...
0
votes
0answers
12 views

Block Reference field not being filled with Value using the Conditional Fields

Hi I'm trying to add a specific block, based on taxonomy term that the user will pick from a field. In more specific words, I have created a field linked to a Vocubulary and it displays like this to ...
1
vote
1answer
19 views

insert read-only multilingual text to user registration form

I've added a 'Term of use' read-only description into the Drupal user registration form, but I would like to make it multilingual. The corresponding code is in the begin of template.php (responsive is ...
0
votes
1answer
22 views

Is there any module to create a set of field without creating new entity field for each one?

My objective is to have a module which gives me the option to create a entity field that can have multiple field values. For example, the location module. It creates an entity field of type ...
0
votes
0answers
25 views

How to add extra/custom field in group-audience widget in content type in drupal commons

Here i am working in group-audience widget in drupal commons.Here i need one idea for adding extra/custom field in group-audience widget in content type. Given image have two option value but i need ...
0
votes
1answer
28 views

Set a value from one text field from one content type to another text field in another content type using set data value in rules

I have two content types A and B and I have two rules. I am trying to add the text put in the A text field of content type A into the B text field of content type B. On rule two I am using the set ...
1
vote
1answer
28 views

Change allowed file types based on certain criteria

An admin comes onto the website and creates an assignment which is a content type. Students come onto the website and create submissions that point to the certain assignment. There is a file upload ...
0
votes
1answer
15 views

How to set an alias to a fields on a db_select?

Like it said on the title, as we use alias to fields with a static query, i want to do same thing with a dynamic query example : with static select : $sql = db_query ("SELECT my_super_long_field as ...
0
votes
1answer
36 views

Set allowed value of a list field depending on the URL

In the list field php code I want to set the value of a field: first do a call to parse the URL. take the [3] element (nid of the organic group) and use it to do a call to the db to get the node ...
1
vote
1answer
18 views

Is this possible to copy Views fields declarations to another view?

Use case: We have a page with a lot of complicated Views generating a lot of queries. There is a way to do it in more efficient way but this needs a lot of changes in Views or even creating different ...
1
vote
1answer
25 views

How to send a newsletter to all email addresses attached to a content type?

I have a content type (customers) having an email field (field_email). I need to create a newsletter using those emails that every certain period increase. I try to use the module Newsletter but I ...
1
vote
1answer
16 views

Achieve single node field edit to have different values for each user?

I am trying to create lets say and activity node which allow each user to insert a different value without having to create a node. for example: I created activity1 node, and then I will allow user a ...
0
votes
0answers
16 views

deleting a bundle removes fields

my module main_module adds an entity my_entity and a field the_field that has 'entity_types' => array('my_entity') main_module also has this: function ...
1
vote
1answer
28 views

Referencing a referenced entity's fields on a form

I'm setting up a contact form and would like to implement the following functionality: On my form I currently have an entity reference field that references the content type 'Home Team' using a ...
1
vote
4answers
67 views

How to hide node field if value is x?

Works great by default when the field is empty. I'm looking for a module that will allow me to hide a field when viewing a node if the value of a field is for example 3. For now, just need it for ...
1
vote
0answers
26 views

Harmony forum show category color [on hold]

I am trying to make my forum front page look like this, with category color icon next to its name: When creating new category in taxonomy, i have an option to input HEX of color. It's limited to 6 ...
0
votes
1answer
24 views

How to relate two similar text fields between Users and Content with User as argument?

Getting a bit mixed up and need help with this. My restrictions are that I cannot use Entity Reference field (or any reference type field) - this is because Salesforce Suite isn't able to translate ...
0
votes
1answer
27 views

How to set Link field value via entity metada wrapper?

I'm using Link field. I need to populate link field programmatically. Currently I'm using EMW a lot, so I'm wonder if it possible to set Link field value via EMW.
0
votes
3answers
33 views

How to manage a field collection in a table?

I have a field collection called My links. My links contains these fields: Organization Name (Text Field) Description (Long text with summary) Link Url (Link Field) This is a pain to manage ...
1
vote
1answer
108 views

How to remove a comment based on it's field value?

I have a multilingual site, Comments in this site include a language field (field_language), so users who send comment to nodes must specify in what language they are sending the comment. On loading a ...
0
votes
1answer
51 views

How to add phone number field to simplereservation/add page

I have installed the simplereservation module. I can add a reservation by visiting xxx.com/simplereservation/add page. I do not see phone number field on that page. How to add phone number field to ...
0
votes
1answer
51 views

How to save field data

I need to programmatically save field data (during node save I want to take the title & path alias and store it in a link field called field_alternative_titles_title). Which functions can I use ...