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

learn more… | top users | synonyms (1)

0
votes
0answers
8 views

Missing Fields When Adding Content

When going to node/add/my-content-type there is only a field for editing the title. There are body and FileFields attached to this content type but they are not being displayed until after I click ...
-1
votes
0answers
7 views

Working with Tokens, webform

I've got a bit of a problem. When a costumer creates a account on my website, he fill out a First name field, can I use the first name in webfor as I can with the %username ? the machine name is ...
0
votes
0answers
8 views

How can I filter a View by the value (or data) of field?

This seams like quite a basic thing but I cannot work out how to do this in Views, since the Views filter criteria has no option to use the data/value from a specific field or token. There is only an ...
-3
votes
0answers
18 views

Drupal reload site after submit [on hold]

Part of a code: $node->field_oa_worktracker_task_status['und'][0]['value'] = 'open'; node_save($node); ------AND NOW code for reload!!
-1
votes
1answer
44 views

Upload as Teaser Background

I have created a views page which displays teasers of specific content type. When creating content I am also uploading an image which we want to display on the background of the relevant teaser. So ...
0
votes
1answer
10 views

Migrating nodes with image- and textfield to file-entity with image and description

What is the approach to convert existing nodes consisting of a multivalue field-collection-field (containing an image-field and a textarea-field as caption) to the file-entity which the media module ...
1
vote
1answer
23 views

load field value to custom form

I'm using Drupal 7 for my website. I created custom settings page with custom form in it, but the problem is I don't know proper way to load inserted value from database to my form after saving it, ...
0
votes
0answers
14 views

field_attach_form: multi-image is not working on ajax

I am using custom form and in a fieldset I am assigning field which is from content type I get by using field_attach form. When I attach it directly it is working fine. But when I use it attaching to ...
-2
votes
3answers
32 views

Get value from field in php [on hold]

I am trying to get fields value in php but I cannot make it work. My code <?php $value = $node->field_price; return $value; ?> Can somebody please help me to solve this? I believe it has ...
0
votes
0answers
20 views

How to let users view anyone's field value, except for their own?

I have two user fields 'Name' and 'Name (public)'. I'm using the Field Permissions module to make 'Name' private. Instead, users can see everyone's 'Name (public)' on the profile pages. Now, I'd like ...
0
votes
0answers
20 views

Can you hide date field when its date matches with the sites date? [duplicate]

I have a date field in my site and I want it to hide/be invisible when the date I have set is now or matches the sites date. I hope there is a way to do this using Rules.
1
vote
1answer
26 views

Is it possible to get access to files uploaded via FTP in the media module in Drupal 7

I installed media module to select files from server instead of directly upload them but in the library tab only the http uploaded files are available not the FTP uploaded files. Is it possible to get ...
0
votes
0answers
13 views

Views - Add an empty field to a view then use it as a link

I have been using the 'rewrite results' option to create links within a view table. Several of these link fields are just plain text, which use replacement tokens to build the link. These fields ...
0
votes
2answers
31 views

Can I hide date field if older than a certian time using Rules?

I want to know if I can hide the values of a date field if the values are older than a certain time. The website is built with Drupal 7, and Display Suite.
1
vote
1answer
15 views

General or specific field names [closed]

I have been creating a site for company forms (quote forms, update forms, request forms) with the goal of reducing the amount of paper that the office uses. My content types started off with very ...
0
votes
1answer
20 views

convert text to long text

I have a text field on my site which is becoming a problem. Users tend to input more text than I had expected. I need to convert this text field into a long text field. This is problematic because ...
-1
votes
0answers
21 views

Fields and NoSQL — whats the benefit?

I have been reading up on fields and NoSQL and I am confused by the reasoning behind keeping the node in SQL and the fields in NoSQL for scalability or performance. When the entity is assembled, will ...
0
votes
1answer
23 views

Change field from Multi-Value to Single-Value

I have a developing a website with a reference term field with multi value. But after the client change the "rules" I need to change the field from multi value to a single value field, but the field ...
-1
votes
1answer
26 views

Advanced Forum: Hide Form Label

How can I hide the label of form in advanced forum? My content type:forum topic->comment display->comment:label is already set to be hidden Edit : I realised that it's a form
2
votes
1answer
27 views

How to check if field in Field Collection is required?

I'm running into a problem of programmatically checking fields in a field collection. What I want to do is loop through all fields within a field collection and check which ones are required. I've ...
0
votes
1answer
11 views

mvf field is not working for facet search

I am using mvf field for my project . In that i want to index the mvf field . But when i try to index, it is not listed in the Default list nor Add related fields at ...
-1
votes
2answers
14 views

How to let user add multiple sub-content fields in the main content?

If I want user to create a main content which can be able to add multiple sub-content for example I wanna do apartment renting website. User have to create the apartment details which contain these ...
0
votes
2answers
16 views

Redirect from edit page and prepopulate form

I would like to redirect user from node edit page to node add page but with prepopulated form. So all fields of the form would be pre-filled with copies of values of node edited before. Is there a way ...
-1
votes
0answers
15 views

Create a button for user to enter content

I've juste created a new site and i'm having problem customizing it. 1-) I want to allow users to create own content(prayer requestion and testimonial). 2-) I've created content type and set ...
0
votes
2answers
18 views

Is it possible to define a field as disabled on creation in field_create_instance?

I have a content type that has a mix of user-editable fields and auto-populated fields (from an external source). I would like to mark those fields as disabled right when I create them so the user ...
0
votes
1answer
18 views

How to change the language of a node and all its fields and all related data?

On my multilingual site, I have a content type that is going to be user created. I want to keep it language neutral ('und'). But there already are a couple thousand nodes of that content type and ...
0
votes
1answer
19 views

I would like to split up the fields in the 'create new content' screen into sections

I have a content type with about thirty different fields. I would like to group them by category and I would also like to split them up so that half of the fields are filled in at the time of ...
0
votes
0answers
17 views

Do tokens work with Rules “Set a data value”?

I have a simple Rule created in which the action is that a particular entity is created (a node) and then another action is called to "Set a data value" of one of this node's field (a standard text ...
0
votes
0answers
14 views

Redirect edit link field to a custom form in views

I've this view. I need to redirect the edit link to a custom form to edit a node. How can I change the path to insted going to the predeterminate page go to my form?
0
votes
0answers
15 views

“Username field is required” error at registration, nothing in log

If a visitor try to register here https://wear-freaky.com/user, filling all forms correctly and clicking to submit, the error message "Username field is required" appears and no log error is created. ...
0
votes
0answers
15 views

How to get the product field for filter in /product page

I am using commerce kickstart . I have the facet search for price field. But how to filter product with other product field. I don't want to indexing all the product field ,i want to achieve it ...
0
votes
0answers
11 views

Copy value of field into the value of a different field in features

I have exactly the same question answered in here but I want to do it in content type in features. I have custom content type generated by features module and I want to copy value of ...
1
vote
0answers
13 views

How to use a field as an entity's property

My module provides its own entity. I need my entity to have a link field with multiple values. The module link is suitable for this. At install hook, I create a field and a field instance of link ...
0
votes
1answer
6 views

Hide a Prepopulated email textfield

I am trying to prepopulate the following fields on a commerce add-to-cart form and then hide the email field: Recipient name: (textfield) = field_recipient_name Recipient email: (email field) = ...
3
votes
1answer
34 views

What is the right place for Product Image [closed]

We can take image of product through Product Type or Product Display content type, I just want to know what is the right place for product images fields ?
2
votes
0answers
16 views

Dealing with #disabled and #access in hook_field_validate

is there any way to disable hook_field_validate when the corresponding field widget is disabled (via #disabled = true or #access = false) in corresponding form? Or, alternatively, is there at least ...
1
vote
1answer
25 views

Unable to retrieve user id of edited user from $entity in hook_field_validate

I have this little problem with a custom field that is bundled with user. In its validation function I need to have access to the user id of the user whose field is being edited. What that means is, ...
1
vote
1answer
32 views

add fields directly to node table?

Is it a good idea to add field directly to the node table via db_add_field and schema_alter? e.g. i want to add just number of views field to it. I know the recommended approach is field api but find ...
1
vote
1answer
33 views

how to give read more link in a block?

I have a views block which display user's detail like name, picture and about. i want to give a read more link in "about" field, by click "read more" link the trimmed "about" will open in the same ...
1
vote
2answers
27 views

How to filter nodes using date field

I have a content type of "Class" that has a date field attached to it field_class_date. When a node of the type "Class" is viewed, I would like to display links to other classes that are on the same ...
0
votes
1answer
19 views

How to migrate fields attached to files?

I'm writing a file migration using migrate/migrate_d2d to migrate files from one Drupal 7 installation to another. Images have custom fields attached to them, including a text field ...
0
votes
1answer
24 views

How do I remove text format information from the bottom of my text areas

I have a content type which all of my users can create instances of. The last text area has a section listing the particulars of the text format. I would like to disable this area so that the test ...
0
votes
0answers
22 views

How do you remove N/A from radio button groups?

I have added a radio button to my content type and I have found that N/A was automatically put in as a selection. How do I get rid of this?
0
votes
1answer
17 views

I just want to add a radio buttons to my content type

I am creating a new content type in Drupal 7 and I would like to add some radio buttons as content types. This is surprisingly difficult to do. I have enabled field and options modules but I have ...
0
votes
0answers
22 views

Show field label when using tokens in “Global Custom Text” field in Views?

How can I show the field label when using tokens in Global field in Views. To reproduce: In a view: 1) Add field: title-field and enable to "Create a label" with value "My title". 2) Add field: ...
0
votes
1answer
17 views

How to convert a unix timestamp field in views

I'm keeping a Unix timestamp in a text field. In Views, I want to convert it to a readable date. This is a commerce view, and the field is a custom field of an order. Can I use ...
1
vote
1answer
27 views

Programmatically printing from field_collection array

Is there any simple way to print a certain number of elements from a field collection? Say I have an array of 8 elements and want to just print 4 at the top of a page; then, print the other 4 at the ...
0
votes
0answers
10 views

Fatal Error Content Type exhausting memory allocation modules / field

I have a content type with 22 fields. They are mostly text, though one is a entity reference. When I go to create a content with this type I get the fatal error where memory needs to be increased. I ...
0
votes
0answers
27 views

I can no more save anything related with fields! Why? [closed]

For example, in field settings pages like admin/structure/types/manage/content_type/fields When I try to change the order of fields, the config isn't taken in consideration. In the "translate ...
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 ...