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

learn more… | top users | synonyms (1)

0
votes
0answers
1 views

How to programatically add undeletable fields to entity?

I'm creating pretty complicated system with few custom entities. Those entities will have some calculated properties, and some exposed properties - those calculated ones will be based on. I resigned ...
0
votes
0answers
4 views

registration form disable required username

I'm using the logintoboggan module, so that users identify with email and password. Everything works fine, with exception of that on the registration form is required to put a user name. It must ...
0
votes
0answers
2 views

Not able to put content abouve Image in article

I would like to put information about the author above the image in an article. But I do not want to use the standard Drupal Author informations. So I would like to use just a html textfield. I ...
0
votes
1answer
32 views

How to add drupal contributed modules into a custom module

I've done a custom module to generate some forms. There is a image field present. I would like to add cropping functionality in image field. I've seen that is very interesting the Imagefield Crop ...
0
votes
1answer
9 views

How to restrict completion of only one field within a field group

Is there a simple way to have several fields within a field group; such a way that only one field in the group can be populated. Example use Case Field group is called 'Insert Media'. The group ...
1
vote
1answer
21 views

How to know the “name” of an input field of a commerce checkout form?

I need to find the name of an input field of a commerce checkout form to use in: form_set_error('NAME-HERE', t('Field cannot be left blank')); The html of the field is: <div ...
0
votes
1answer
21 views

field formatter settings won't save [on hold]

For my custom field, i have a field formatter with multiple settings. It's like the default number field formatter (decimal separator, thousand separetor and scale) but with two additional options. ...
1
vote
0answers
27 views
+50

What parameters does a custom cck_phone form field need to work?

I am struggling to get a working custom implementation of a cck_phone field. I have included my partially working code at the bottom. What seems to be not working is that the function ...
0
votes
0answers
17 views

Count of certain field value in content type?

I have a content type that I created with the fields: order #, order quantity, and salesperson. The salesperson field is an entity reference to another content type. I'm trying to figure out how to ...
0
votes
1answer
25 views

How to refer input values in php by giving $_POST[name] or $_GET[name]?

I have created content type and I want to refer two textboxes. How can I do that? using normal php the below will do that $Fname = $_POST[uname]; $Lname = $_POST[Lname]; How to do that using ...
0
votes
0answers
9 views

Render Fields as a list [on hold]

How can i render the fields of a node as a list (ul, ol). Overwriting the field with a custom template will not wrap it with the needed ul-container.
0
votes
2answers
34 views

D7 Views: Rewrite multiple field into one with custom separators

This is a follow-up to a recent question of mine, that was solved easily. The construct is very similar, but this time I need to add conjunction characters (in my case a comma and a space: ", ") when ...
0
votes
1answer
23 views

Apply condition between two fields in drupal 7 by using JQuery

This is updated JQuery code I have created condition between two fields in drupal 7 i.e. If we select item from first field then as per there selected item, some items of second field is going to ...
0
votes
0answers
16 views

Calculate webform total from select list fields

Like e.g. there are two select options type components that has various amounts of $ to select from. So if user selects in one field $100 and $200 then the next field below it would generate the total ...
0
votes
0answers
14 views

File Entity module: New file bundle with programmatically generated property/field

I am trying to indtroduce a new file type which is almost the same behavior as the "image" type. I implemented /** * Implements hook_file_default_types(). */ function ...
0
votes
0answers
11 views

Field depandancy module can not work for textfield in field collection

I am using field dependency module for use only 1 field I have 2 fields text and image user can use only 1 field text or image if user can select text field other will be hidden or invisible same ...
2
votes
2answers
42 views

Collapsible fieldset is duplicating it's #prefix and #suffix value

Recently when I was working with collapsible fieldset in drupal 7, I need to add some div wrappers to them. So I go by adding #prefix and #suffix on that form field but when I view the html source it ...
-2
votes
0answers
17 views

replace my account on account profile 2

http://zzzzzz25.tmweb.ru/is/register I have a registration page on it all the fields that I need, just have a page with all users, but when you click on the name of molzovatelya page opens with a ...
0
votes
1answer
13 views

How to get specific fields in the login form

I'm trying to customize the login form. I added this to my template.php function neptune_theme() { $items = array(); $items['user_login'] = array( 'render element' => 'form', 'path' ...
0
votes
0answers
15 views

How can I find the last selected option from a select list?

How can I find the last selected option from a select list? I have a 'Months' field in one content. I want to know what was the last option selected by the user. did any one? Eg: I have two ...
0
votes
0answers
20 views

Print out multiple upload fields on a page

I'm trying to output 4 upload fields on a page. But the problem is that it only outputs the first one and not the rest. All works fine when uploading the files with Drupal's form api, but I just can't ...
1
vote
1answer
12 views

Import fields and field types

I am developing a Management Information System in Drupal, holding thousands of suppliers in different certification schemes. Due to the nature of these certification schemes, and because of working ...
0
votes
1answer
9 views

Get all registered Users into a Field Type List

I would like to create a content/form where an authenticated user is able to choose another registered user from a list/dropdown. I've been searching for ways to get this done but am not able to find ...
1
vote
1answer
24 views

List of images with checkbox (user registration)

This is what I would like to do: When a user registers on the website they have to give in if some options like for example if they are politically engaged, professionally engaged, an expert, ... . ...
0
votes
0answers
12 views

How To Print Taxonomy Field On Page.TPL Of A View?

Using Commerce Kickstart. I'm using a variation of the Page.TPL for a 'Collection' of products. The page is a View which lists products, but the header is a taxonomy term to which the products ...
0
votes
0answers
7 views

a stored field not shown in field list

Im using features module to export user fields settings in a production website, and it works fine ... somehow in the production website one field was deleted. so I want to get back this missing ...
1
vote
1answer
16 views

Use One Content type's field as a reference in another content type's view?

I have following requirements : Add and List of Book Add and List of Quiz related to book. I have created content type for Book with field name : book_id,book_name,price etc..,here book_id will be ...
0
votes
0answers
17 views

Show profile fields depending on the profile users role

We are using profile2 to display users listed on our site which has different member levels. Is there an easy way to hide certain fields based on the profile2 users role. We still like them to enter ...
0
votes
0answers
18 views

Can I apply more than one ajax callback to a field?

I have the following code in hook_form_alter() $form['field_sector']['und']['#ajax'] = array( 'event' => 'change', 'wrapper' => 'sub-sector-wrapper', 'callback' => ...
0
votes
0answers
11 views

Prepopulate a field in a Reference Dialog Box

I have 2 content types named Incident and Migrant. Both of them have fields that reference each other. My question is how to prepopulate a field in a reference dialog box while the node is being ...
0
votes
1answer
9 views

how to create a link field which validates to a set of nodes?

Is there a way to set the Validation for a Link field so that authors are only allowed to link to a pre-determined certain set of nodes? IOW: when authors add a link field to a Node I want them to be ...
1
vote
2answers
44 views

How to modify a term reference autocomplete field

I am using a term reference field but the widget type is autocomplete term widget. This term consist of many levels as parents and child. In the form I need to display only the child terms(only the ...
0
votes
2answers
25 views

Drupal 7 controlled field

I have 2 content types [Content 1 - Content 2] and in the content type 2 form of node add i have field list of entity reference of content type 1, and i also have field in the content type 2 lets say ...
0
votes
2answers
28 views

Fetch node value in Rules

I am trying to get option value from node in drupal rules. I have a form-group which consists of fields. The field in question is a select list - it consists of different names, with every option ...
0
votes
1answer
19 views

How to make existing fields available to be created as instances on other content types etc.?

I have created a custom module that simply creates a set of standard fields via a .install file. It's very simple, basically: foreach (my_fields_fields() as $field) { if ...
1
vote
1answer
40 views

Copy values from taxonomy term field to new text field in content-type

I have a content-type with a certain taxonomy term field that allows multiple values. I don't need this field to be a taxonomy term field anymore, but just a simple text field. So, I want to ...
0
votes
0answers
15 views

Editing Fields on a Content Type

I am trying to get edits in a content type's fields to be displayed and reflected in the view. Here is a picture of the settings followed by how they are being displayed. There is no book type ...
0
votes
1answer
27 views

Adding content type field value to a taxonomy term?

What I'm trying to say at the title is, I have this Select List field that gets its values from a taxonomy called "Thing". The taxonomy term are (Thing-1,Thing-2,Other). When "Other" is selected a ...
0
votes
1answer
17 views

Drupal 7, Entity Reference user autocomplete field

I have a custom content type that has a users: entity reference autocomplete field. For some reason the list gets populated as [realname] ([name]). In other words the realname and username tokens are ...
1
vote
2answers
42 views

How to print a custom user field in comment.tpl.php?

I'm trying to print a custom user field (field_avatar) image as a replacement for the user picture. Why? user picture file directory would not accept tokens. This mean, I could run into a scenario ...
0
votes
1answer
34 views

Menu link on hover is showing &amp; instead of &

I have a Webform that provides a menu link. The webform is available in three languages (dutch, french, english). For the dutch version I have a menu title of Informatie and description Vragen & ...
2
votes
2answers
47 views

How to load XML to SWF on each node?

Here is my problem: I have 2 SWF files for a crossword puzzle: first one is for creating puzzles and outputting XML files upon clicking the "Save" button and second SWF is displaying those puzzles to ...
0
votes
0answers
13 views

Drupal alter country list generated by location module [duplicate]

I want to remove some countries from the drop down field provided by location module, is there any admin way to remove the fields or hook_form_alter is the only way to limit them, thanks in advance
0
votes
1answer
18 views

Relate number of values to an integer field

I was wondering how to do this with drupal. You probably wonder why I don't just use the unlimited amount of values setting. That's because I want to require the user to fill in the amount of values ...
0
votes
1answer
26 views

Content Type: Is it possible to have Term reference on Parent Term instead of Vocabulary?

I have many Parent Terms with child terms on a Vocabulary. I wanna use one of the parent terms on a content type as option. Is it possible to have a Term Reference field on a Parent Term instead of a ...
0
votes
0answers
8 views

Create a names and email field on comments in D6

I am trying to add extra fields onto the comments box in d6. Have tried this in my template.php file function mythemename_form_alter(&$form, &$form_state, $form_id) { if ($form_id == ...
2
votes
1answer
48 views

Views: how to remove ending zeros from decimal field

Suppose, we have a view with a decimal field: It is output like this: 5 000.000 Is it possible to remove the ending zeros, so it looked like this: 5 000 But if there are meaningful values in ...
0
votes
1answer
14 views

Hide fields on content creation

I have added my own content type with many fields to enter, I want to hide some fields when adding a content according to radio button selection. I explain, in the add content page, i have two radio ...
0
votes
0answers
13 views

Editable fields save all instead of onchange update?

I have a panel with a view that contains a table of data. With the editable fields I can edit these values. The problem is, that everytime I change such a field it is firing an ajax call to update the ...
2
votes
1answer
23 views

3-rd decimal digit has disappeared in the output

I created a field, attached it to the entity: coefficient_to_second_side. Type in the database is decimal(10,3). Then I added a value: 1.001. When I select this field manually from the database, the ...