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

0
votes
0answers
15 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 ...
1
vote
1answer
29 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 ...
3
votes
0answers
47 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
52 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
37 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 ...
0
votes
0answers
62 views

Drupal Commerce: Attach product to checkbox node field (Pay-Per-Publish)

I am looking for a way to take a regular content type and then add a boolean checkbox to it. If checked, add a specific product to the cart, make sure the product is purchased before the content is ...
0
votes
2answers
55 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
61 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 ...
0
votes
0answers
18 views

Imbricated select element form

I search to build nested checkbox. Checkbox Type A Checkbox Property 1 Checkbox Property 2 Checkbox Type B Checkbox Property 1 Checkbox Property 2 .... All row is a checkbox. I have ...
1
vote
5answers
704 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 ...
0
votes
0answers
21 views

Acting on checkbox selection

I'm following this tutorial. As it stands, the user selection is printed in the body once submitted. I.e. User selects and submits: 'Checkbox A' 'Checkbox B' then Checkboxes: Checkbox A Checkbox B ...
0
votes
0answers
106 views

Multiple values in one text field

I need a grid of items, which users can choose via checkboxes. I only need to save the ID of the checkboxes, which is max 3 chars. Since I won't be querying on the field, I wanted to store those ...
1
vote
2answers
60 views

How to Create a view for users in witch they can assign a task too 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
0answers
49 views

Using conditional fields to create multiple new nodes

I'm trying to use the Conditional Fields module to: Allow the user to select a number of checkboxes in one field Create new node for each selection Add a link to each node new node in another field ...
0
votes
1answer
49 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
46 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
312 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 ...
2
votes
1answer
1k 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
184 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
88 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
174 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
83 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
340 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
68 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 ...
0
votes
0answers
166 views

Using checkbox field in Multi-step Forms results in Fatal error: Cannot unset string offsets in field.default.inc on line 41

I altered the Drupal 7 user registration form to be multi-step. On the first step is the username and email textfields. On the second step is all the extra user fields by setting their #access ...
1
vote
1answer
1k 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
246 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 ...