A checkbox (check box, tickbox, or tick box) is a graphical user interface element (widget) that permits the user to make multiple selections from a number of options (contrary to a radio button where only one choice is possible), or answer yes (checked) or no (not checked) on a simple yes/no ...

learn more… | top users | synonyms

1
vote
0answers
18 views

How to save single value from a select field?

I have webform module with multiselect field (Checkbox) User can select all the three. PR|Print Required DP|Digital Print Required TP|Print has been taken **If user selects the last option ...
0
votes
1answer
14 views

How to put select option value into particular category in webform module?

I am using webform module and added a select field. My option values are One|Sample 1 Two|Sample 2 Three|Sample 3 Four|Sample 4 Five|Sample 5 Six|Sample 6 But I want these three ...
0
votes
0answers
26 views

How can I replace BEF checkboxes with different images

Using D7, I have a view with BEF that uses checkboxes for filtering by a taxonomy term. Everything works as intended, but I want to customize the checkboxes in a very special way, and don't have a ...
0
votes
1answer
17 views

Add help text to checkbox options on node form

How can I add help text to each option on checkbox option on drupal node form. I do not want to add this from UI while adding values for the field. Using hook_form_alter I do not believe we have ...
1
vote
1answer
41 views

How to create a checkbox field in a node for Terms and Conditions

I need a field to ensure the users who create a node accept my Terms and Conditions. I've gone as far as creating a boolean field and making it a required field but I don't know how to: 1) Disallow ...
0
votes
1answer
23 views

Modify checkbox event on custom line item type to hide show div

I have a block of custom length fields and a rule to figure them and put the correct total in the cart however I want to hide the div that contains them unless the exact lengths checkbox is checked ...
1
vote
2answers
58 views

Set Custom value in checkbox

I have an array... $my_array = array(1 => 'Value One', 2 => 'Value Two',3 => 'Value Three'); In Form API, I want to create checkbox for each value. foreach($my_array as $key => ...
0
votes
2answers
41 views

How to assign default values ​​for an edit form?

In my form I create a field of type list (with the widget box is checked). By default, this field has no value. In my hook_form_alter () method, I add options (via PHP) has this field. ...
0
votes
1answer
13 views

Custom Views Filter - won't display as checkboxes

Trying to do a custom filter so that the user can select multiple states to filter the data by. This works (or will when I do some customizing to the query after) but it shows a select box. Any ...
0
votes
2answers
59 views

How to distinguish radio and checkbox type in drupal

I have a content type which consists four types of fields. checkbox, radio, select, select multiple I'm using field_info_instances('node','bundle_name') in my custom module to get filed info for my ...
1
vote
0answers
40 views

Add unordered list below form checkbox

I was wondering if anyone knows how to add an unordered list after/below the checkbox label. So the label would have sub-labels to them. I would image that the code would look something like this, ...
-1
votes
1answer
69 views

Save checkboxes value into another checkbox field

I'd like to save the value of a checkboxes field which is link to a product once I save my content type. I've created the code needed to create the product and the node. When the node is in creation ...
0
votes
1answer
18 views

Checkbox-Field Tree Menu

When creating content, I'd like to have something akin to a drop down menu. You could hover over an item and a list of checkboxes would appear. Essentially it'd be a Select List with sub-items. Is ...
0
votes
2answers
30 views

Creation of checklist by content editor?

I want to create a functionality which allows content editor to edit or add checklist(in a tabular format with mulitple checkboxes) in a drupal 7 website . How can I achieve this ? This picture ...
0
votes
1answer
61 views

how to get the value of list field type (check boxes)

$node=node_load(18); $logo_img = file_create_url($node->field_site_logo[$node->language][0]['uri']); //origional image path $show_logo = $node->field_options_site_logo['value']; //original ...
0
votes
0answers
43 views

Changing the checkbox hover color in Drupal Commerce Kickstart

In Drupal Commerce 7.x-1.8 the default is for checkboxes to turn light blue when they are hovered over. I would like to change the hover color but I cannot work out where this is being set. The same ...
0
votes
1answer
90 views

Detecting a form change. Is jQuery the way to go?

I have got a form with quite a lot of checkboxes (can go up to the 100's) in a table and I would like to detect if a checkbox has been clicked by the user. If they have, I would like to automatically ...
0
votes
1answer
67 views

How do I create a text field in registration that only shows up if a checkbox is checked?

I am making a registration process in which there needs to be a text field that only appears if a checkbox is "on". I would think "parent" fields would do this, but whenever I click the "parent" ...
1
vote
1answer
250 views

“Check boxes/radio buttons” Widget is NOT displaying content in Drupal7

In Drupal 7 Admin, I added a choice field of Type "List (text)" and widget "Check boxes/radio buttons", in which I see the list of check boxes in the Admin. But I don't see anything in the Live ...
0
votes
0answers
79 views

Can not get checkbox's to be mutually exclusive with simple form

I want 2 checkbox's that are mutually exclusive. In the example below when you click on one it will work for like one cycle then working as they will both become selected. Is this not possible? What ...
0
votes
0answers
190 views

D7 FAPI unexpected behaviour when combining AJAX, checkbox and a table theme

I have a table filled with checkboxes in a form made according to: http://passingcuriosity.com/2011/drupal-7-forms-tables/ The form also has a autocomplete textfield with an ajax button, which allows ...
1
vote
2answers
128 views

Checkboxes options with class in form api

I need something like a filter on checkboxes #options in my form built via Form API. Is there a way to group checkboxes or add a class to filter them via js front side? In the documentation ...
2
votes
1answer
89 views

Checkbox near multifield value

I want to make a new content type called Event, I have other fields in Event, but the field I am having trouble is Keynote Speakers. Speakers are different content types and have their own fields ...
4
votes
1answer
322 views

With states, how to uncheck a disabled checkbox, but not check it when it becames enabled?

I have a Form API checkbox that can be enabled and disabled by another ("parent") one: $form['my_checkbox']['#states'] = array( 'enabled' => array( ':input[identifier="parent"]' => ...
1
vote
2answers
200 views

populate checkbox value in text area

I am a drupal newbie and am having the following problem: In my custom content type page, I have multiple check boxes and a text area, among other fields. What I want is that, I would like the values ...
0
votes
2answers
1k views

Getting the value of a checkbox in form api

I'm creating a form using Drupal's form API. This form includes about 50 or so checkboxes that I'm creating using the type 'checkbox'. The checkboxes are grouped using several fieldset elements. ...
1
vote
3answers
113 views

Views Grouped Filters turns Radiobuttons into Select?

I have a grouped filter in a view with lets say 3 items. For the Widget i choose Radios and Allow multiple selections. For 3 Items everything works fine and i have some checkboxes. Wenn they are more ...
0
votes
1answer
84 views

Adding checkbox in admin table display

I'm trying to add a checkbox column in the admin table part of my module. The idea is to add checkboxes at the beginning of each row, like in the normal admin content management form. My table is ...
4
votes
1answer
169 views

How to specify default options in a checkbox field using Field API

I am trying to add a checkbox field to user entities using the FIELD API (in function MYMODULE_install() ) I can create the field, but I can't pre-load it with the desired default values. Where my ...
0
votes
0answers
224 views

How to add class to “checked” checkbox or “selected” radio button in Webform?

I need to add a class to the containing div of a checkbox or radio button when that item is selected in the webform. For example... Existing code: <div class="form-item form-type-checkbox ...
2
votes
1answer
746 views

Adding multiple checkbox in drupal using cck

I am trying to add multiple checkbox. My requirement is how can you travel the place with Plane Train Bus Ship One can select all the four above options. For that I added a new field Travel ...
4
votes
1answer
677 views

How to add tri-state checkboxes to form created with Form API?

I want classical tr-state checkboxes, like the ones on the picture below: Checked would mean "true for node and all it's children", intermediate "true for some children, leave it as it was" and ...
1
vote
2answers
672 views

Adding #ajax to checkboxes and getting selected values in callback

I've been trying to use #ajax callbacks on a form. I've got this working with radio buttons, so when I've debugged the form I get the value associated with the radio button as '#value' under ...
0
votes
2answers
177 views

How to add a checkbox form to a panel?

I have set up user comment email notification on my Drupal 7 site. When a comment is posted the author is notified by email. I did it using rules module as described here. Now the user has the option ...
2
votes
2answers
378 views

Multi-value checkbox within content type

I simply want to make a multivalue field within my venue content type (music venue) funky, cool, dive, swank, disco etc. I want to be able to select those when adding a venue, and then have it ...
1
vote
2answers
221 views

Checkbox in user edit page

I have customized the user-edit page in Drupal7 using user-profile-edit.tpl.php. I have also added reCAPTCHA to it using the reCAPTCHA module. I would also like it so that there is an "I agree to ...
2
votes
5answers
2k views

Alter checkboxes values in a webform

How can I alter the key/value items of a checkboxes component in a webform? I've followed this answer and I successfully altered a select list component for both render and submission. I'm trying to ...
1
vote
2answers
171 views

How do you create a view in which users can assign tasks to themselves?

What I want to do. A user clicks on his profile page. A view displays that shows a list of completed tasks. A task consists of a list of check-boxes (a checklist) and a "pending and finished" ...
0
votes
1answer
109 views

Checkboxes Defaulting to Selected When Not Desired

This is going to be sound like a real stupid question, but for the life of me I don't know how to fix it. I have inherited some code that I need to maintain, and the issue I am experiencing is that a ...
1
vote
0answers
63 views

Creating a content type in the CCK with several categories and multiple options

I have to create a content type with multiple options divided into categories. For example, imagine that you want to create a content type about cars and each car has multiple categories (engine, ...
4
votes
1answer
743 views

Setting Values for TableSelect checkboxes

Is there anyway to set the default values for checkboxes? What im trying to do is set a specific value for each checkbox so it will delete the selected row in my db, however table select seems to just ...
3
votes
1answer
3k views

Single on/off checkbox default value not work

I have a boolean user profile field which is single on/off checkbox, says 'field_user_flag'. Its On value is 1 and Off value is 0. But I could not set #default_value = 1 from hook_form_alter to save ...
0
votes
1answer
297 views

Altering the text after a checkbox using the Drupal Form Api

I got the following issue. A clients wants that the text after checkboxes are links to other pages and thus between ... I have the following code: $form['boxes_brands'] = array( '#type' => ...
0
votes
1answer
106 views

Checkboxes in exposed form in block aren't checked in initial state

I have views with exposed form. In filter criteria I have filter category which has 4 checkboxes. If I choose to display exposed form in block, in initial state checkboxes aren't checked but ...
0
votes
1answer
238 views

How do you create a multicolumn radio button list for selection

Is there a way to have a multiple button list like the one seen in personality tests like at the set up of match.com (here is an image). Its something relatively simple. Furthermore, the information ...
0
votes
1answer
121 views

Checkbox left hand navigation drill down

Does anyone have an idea on how I can go about creating this navigation? I have a section of a website that has subwords of a top vocabulary word that I would like to show in a left hand menu in order ...
0
votes
2answers
472 views

AJAX checkboxes in Views to change node values

I have a use case in D7 where I need to make a listing of nodes in table format, and included in the fields are checkboxes that us AJAX to do things like publish/unpublish a node and set other field ...
0
votes
1answer
84 views

Disallow specific combination of checkbox selections in term reference field?

I have a term reference field in the format of checkboxes. However, I'd like to disallow certain combinations of checkboxes. The options are: []None []Food []Drinks The "None" option is not the ...
1
vote
1answer
2k views

How do I get values of checkboxes?

im using drupal 7 and have added checkboxes to a node - $results = query(); foreach ($results as $result) { $name = $result['name']; $resultarray[$result['id']] = $name; } $form['friends'] = ...
0
votes
1answer
402 views

CCK checkbox or dropdown widget in drupal 6 as a field?

I am trying to setup a new CCK field for a content type to display as a checkbox but I see I don't have that option in the widgets type.. shouldn't that be included in the default CCK ? I am using ...