A text field (or text box) is a user-interface control that allows the user to type a small amount of text

learn more… | top users | synonyms

2
votes
1answer
13 views

How to hide input from user inside a textfield

I need text inside a textfield FAPI form element to be obscured visually, just like the password field when you type into it. password FAPI form element does not have proper functionality for what ...
0
votes
0answers
16 views

How do I create an autocomplete textfield? [duplicate]

I have a textfield, which should be autocompleted with the IDs of another entity ('context'). How can I do this? $form ['context_key'] = [ '#title' => t('Context key'), '#description' =&...
0
votes
0answers
9 views

Display text in dropdown

My user needs to be able to create a dropdown/select list when creating a new node. So what I did was create a text field with the ability to add unlimited fields. I looked at the text formatter ...
0
votes
1answer
16 views

How can I add processing of text blocks before outputting them on site?

I have a library, that formats text for better readability. I want to put processing of text blocks and strings before outputting them on site, Where and how to do this? The processor a very simple: ...
1
vote
1answer
11 views

How to process field input so b52 goes into database as B-52

Situation: D7 Text field on a content type. User enters something like: b52 I want it stored in the database as: B-52 I have a function that does the regex. I just don't know where to process the ...
0
votes
2answers
49 views

uppercase form textfield

I want to have a form textfield automatically uppercase the text entered as it is typed in. I was hoping that there was as set-able property that would allow for this but I’m unable to find one. ...
1
vote
1answer
46 views

Use dropdown in views exposed filter on text fields with node->title?

I followed this link to transform my exposed filter from textbox to dropdown list. Use dropdown in views exposed filter on text fields with entity not node? I make it work with a custom textfield. ...
1
vote
1answer
33 views

creating “live search” from database text field in Profile Content field Drupal 6

I'm new to Drupal development. I have inherited a Drupal 6 site. I would like to add to the content-profile fields a "live search" text field that will give the user options from a database based on ...
0
votes
1answer
30 views

How to change url webform entry textfiled to link in views?

I have url data (for example http://testtt.infoo) submitted from webform (component textfield). When I display by using Views, this looks like text. I hope I can click it and open the url site. ...
1
vote
2answers
66 views

How to create something like a textual “add other term” for taxonomy terms?

How can I setup taxonomy terms so that you can have an extra field called "others", where you can add your own terms if the term you want to use is not defined yet as a term of that taxonomy? I have ...
0
votes
1answer
46 views

Druapl 6 textfield to Drupal 7 Unsupported operand types in theme.inc

I have this field in allocate_seating module. which is version 6 theme('textfield', $element['floors'][$key]['title']) And I am getting below error Fatal error: Unsupported operand types in /...
0
votes
1answer
193 views

Auto Increment value for field collection

I have a field collection group to which I am importing values using Field Collection Feeds Importer. This requires a unique identifier field within the field collection. This has posed an issue where ...
1
vote
2answers
443 views

Limit text field to specific length

In my custom content type, I want restricted the length of text entered in a text field. I want to check whether a user entered e.g. thousands of words. For this I tried this one but unable to achieve....
1
vote
0answers
149 views

Simple multi value text widget needed (non draggable)

I have a content type with a multi value text field. It renders as the table with sticky headers, draggable lines and "add more" button. I just want a text field and a link "add more" below, so the ...
1
vote
0answers
36 views

How to create a new widget for a plain text field

I have a text field in a content type in the admin. This week I only like people to fill in, say the words yes, no or I forgot. I don't want to create a new field type. Next week, I will implement yet ...
3
votes
4answers
485 views

How to prevent Autocomplete Caching?

I have made textfield to be autocomplete field by using hook_form_alter. mymoudle_form_alter(&$form, &$form_state, $form_id){ $form['field_state']['und'][0]['value']['#autocomplete_path'] =...
5
votes
2answers
698 views

How to check spelling of user typed text in a form textbox

I built a form which have a text field for take input from user. Now I want to implement a spell check module or something which can check spell when user type some word or sentence in the text field....
0
votes
2answers
1k views

When I click a radio button its value should display in textfield

Above is the sample screenshot of my form where I would like to do is: When I click/check on radio button "One" then its value should display in textfield of "Display". Code: function ...
0
votes
1answer
406 views

How to replace/delete part of a string via phpMyAdmin [closed]

In my Dupal 7 site I have 1300+ entities with a text field for the price (field_msrp) of each entity. There are typically three different formats (from different content managers): $1,234 1,234 ...
0
votes
1answer
102 views

How to print the HTML content of the text field in Drupal 6 programmatically

I am printing the $node->field_abc[0]['value'] in php code where node is node content and field_abc is text field . How can I print the html format of the field in Drupal 6
1
vote
0answers
148 views

font color text field content type

I have a text field in a content type which the user should be able to choose the color of the text. Is there a module that I can install when creating the node you can choose the font color of the ...
0
votes
1answer
121 views

Change taxonomy term field into text field in content-type

Is there a way to transform a taxonomy term field into a simple text field? I need to keep all the terms present in the taxonomy field and have them separated by a comma.
1
vote
2answers
397 views

Is there a number field with + and - feature?

I am working with Form API to create a customized form shown in a block. Most of the fields are textfields. I need a +/- feature for a numeric textfield, i.e.: Is there an existing field like the ...
1
vote
2answers
364 views

Pre populate a text field when creating node

Say I'm creating content into a text field. Instead of inserting text by typing into text field, how could select text from a drop down list to pre populate the text field?
0
votes
1answer
682 views

How to enable Rich text editor for content types

I have installed Ckeditor module and configured it to work with advanced editing options. But couldn't get rich text editor. I even tried all options in content authoring I din't get any solution. ...
0
votes
4answers
1k views

Change field type from “text field” to “integer” (D7)

I have a field that is numerical in nature and when it was setup it was a text field. Problem is that when I use views and sort ascending, the number 111 comes before 20.
4
votes
1answer
4k views

How does drupal autocomplete textfields work?

I am asking this question because I have an autocomplete text field with #autocomplete_path set to a valid working path but key events are not handled by the misc/autocomplete.js file. When the form ...
0
votes
1answer
166 views

form textfield name -value changed and does not validate any more

i have a checkout-page (drupal commerce) form with an address section generated by the module addressfield. currently all text-inputfields have this markup-structure: <input class="last-name" id="...
0
votes
1answer
291 views

Adding value to multi-delta textfield programmatically

I have a phone field in a form, which is just a textfield with its default widget. I'm trying (and failing) to add values to this field programmatically through ajax calls. I have an ajax call ...
0
votes
1answer
34 views

How to add links in the title for a profile text field

so i have this as a check box for profiles and it is being shown on the registration page as well "I accept the Terms & Conditions and Privacy Policy." and i need to make Terms & Conditions ...
0
votes
1answer
419 views

How to get custom product line item text field value?

by using commerce customisable products module, I created a custom product line item type to which I added a text field (Machine name field_license_details). By following this excellent video tutorial ...
1
vote
0answers
59 views

How to add a long textfield in Matrix Module ?

Does anyone know how to add a long text to the matrix module column? I've tried with the "custom" field but it's not working. Any idea?
2
votes
1answer
100 views

How do I chose recipient email address depending on textfield value?

I have created a webform which has a "Reference number" textfield. When someone types 101 in that textedfield, the submitted form should be send to example@gmail.com; if someone types 777, the ...
0
votes
0answers
1k views

Drupal 7: autocomplete return nid and name, change behaviour

After a long unsuccesful search (sure not long enough), I'm posting my first question. It's about textfield autocomplete in Drupal 7. I have next code: function my_module_menu(){ $items['...
3
votes
1answer
741 views

Adding conditional statements to custom text fields in views

I have custom text fields set to display two items as follows: [field_title]: [field_subtitle] Is there a way I can get rid of the colon if the subtitle field has no value? via php or javascript?...
0
votes
1answer
190 views

Ho to add mixed multiple fields in a node

I'm searching for a way to add unlimited amount of multiple mixed fields in a node. In few words there is such a situation: let's say, I have a content type with fields "picture" and "text", and for ...
1
vote
1answer
29 views

how to get rid of descriptions that are linked to input types?

I've got a question about the descriptions that are linked to input type options. How do I get rid of it? I've inherited a site that, for some reason, when I mouse over the options they start ...
2
votes
2answers
995 views

Is there any ideas on webform mutile values on same field?

In webform select components, we can set multiple attributes but not for filed like textfield or numbers. So I want to ask is there any ideas on that, so let user can add more value on same ...
0
votes
1answer
436 views

How to show an input field on node view, not just on node edit / add?

I would like to show an input text area field with filtered html on node view (not on node/add !). (I would like to show editable text in a tinymce editor here http://proofreadbot.com/proofreading/...
0
votes
1answer
117 views

Textfields and values with a value of 0 get blanked out if stepped forward/backwards

I have a multipage form programmed with the drupal FAPI having in total 3 pages of fields consisting of textfields, textareas and radios, the form can be stepped forwards and backwards. On page 2 of ...
1
vote
1answer
1k views

How do I make the select options have a textfield beside them instead of a box?

I created a webform that uses dynamic select options generated from a specific content type, which represent objects. I would like to have a text field beside each one to in which the user can input ...
1
vote
1answer
619 views

Deciding between (CCK) Fields and Taxonomy for a list of options. Pros and cons?

Sometimes I wonder why to choose Term reference or a regular List (float/integer/text) over the other, when I would like to "force" my users to select one or multiple values from a list. Taxonomy ...
3
votes
3answers
552 views

Divide a webfrom textfield component into a specific input format

I have a need to divide a webform component into a specific formatting that is to match a coupon format. The user input needs to look something like this. Then within the webfrom exported data the ...
1
vote
0answers
338 views

Fields are rendering white space at either side

I am rendering my node fields using: <?php print render($content['field_website_link']); ?> On the front end this is printing as: <a class="upper" href=" http://www.domain.co....
1
vote
3answers
2k views

Add a custom field to a quiz

I've got a quiz. There is a content type to create a question. I've added a textfield to it (which will show a link to where the user can find the answer). When I look at the question itself the ...
0
votes
4answers
1k 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.
3
votes
1answer
5k views

Form field with support for multiple values

I'm building a costum form using Drupal (7) Form API I want to create a text field with possibility to add multiple values through autocomplete. The idea is to allow the user to add taxonomy terms to ...
2
votes
2answers
516 views

Can I use Node Reference Field as a Text Field if there are no references?

I'm creating a content type Event. I want to reference the node of another content type Venue, so the user will be able to click to the venue node from the event. To reference the venue on the Event ...
7
votes
3answers
7k views

Autocomplete textfield widget?

Does anybody know of a Drupal 7 autocomplete widget for textfields? I've tried Autocomplete Widgets, but the "Autocomplete for allowed values list" widget from that doesn't seem to exist in Drupal 7 --...