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
27 views

Checkboxes values

I have a column of checkboxes (not checkbox), what I want is to get : value = 1 (when one of them is checked, 0 if not), what I have now : if one checkbox of them is checked it returns the "name" of ...
1
vote
0answers
43 views

Create a tableselect like /admin/people/permissions [duplicate]

I want to create a table that looks like the drupal table on : /admin/people/permissions (table with multiple checkboxes on every line) Any help is welecome
0
votes
0answers
23 views

How to set checkboxes on a tableselect

I want to display tableselect with a column with only checkboxes this is my code : function liste_sections($form, &$form_state){ $form = array(); $form['checkbox'] = array( '#type' => ...
1
vote
1answer
22 views

Drupal 7 Form API, Checkboxes with key -> value from database

I'm working on a custom module and I'm adding a form that uses checkboxes. All is fine with using code like: $form['tags'] = array( '#type' => 'checkboxes', '#options' => array( 88 => ...
0
votes
2answers
15 views

How to change the “Check boxes/radio buttons” fields weight?

I have created a radio buttons field in entity form. I just want to move yes label above and No label below. How to achieve that i am not getting any option.
0
votes
0answers
29 views

Tableselect with only checkboxes in every line

As said in the title, I want to create a table made of a list of "persons" (the left column) and few columns in order to only check properties of every person, that why I need only checkboxes on this ...
0
votes
1answer
8 views

Tableselect with columns of checkboxes

I've a simple tableselect with 4 columns, in the 3 last columns a want to populate all the columns with checkboxes, anyone can help me to do that ? here is my actual code : function ...
0
votes
0answers
14 views

Table select checkboxes values

I have table select (list of persons with name, age) and I want to return a name of one of the rows on a dsm for example, but by checking the checkbox of the row that I want to dsm and clicking on ...
0
votes
4answers
190 views

Create a checkboxes-field with a radiobutton for all items

Usercase: Have a list with services for shops. Those services can be done with an appointment, or without. So the services are checkboxes, and the radio needs to show if it can be done with or without ...
1
vote
1answer
39 views

Menu items visible based on checkbox

I want do show/hide menu items based on a checkbox that the user selects when he/she registers. I use profile2 for register. Should I use an external jquery script that calls on page load or should ...
0
votes
0answers
50 views

How to customize entityreference checkbox widget?

Here is my case: Field: Food Field type: Entity Reference -> View Widget: Checkbox/radio button Instead of having the checkbox button before the entity reference details, I wanted it to be inside ...
0
votes
1answer
34 views

Search keyword with selectable exposed filters

I'm trying to make a search view with one textfields and two checkbox filters (body, tags). The search text would only search the selected fields and would show results as summaries. I've tried ...
0
votes
1answer
36 views

How do I group and add space between checkboxes?

I need to group the checkboxes and put some spacing between each group. They need to look like this: item1 item2 item3 item4 I can easily add an additional field to the options array specifying ...
0
votes
1answer
33 views

Select All checkbox and sub fieldgroups

I am looking for a way to present the following to users. This will be a list of checkboxes: [ ] Region 1 A [ ] Region 1 B [ ] Region 1 C [ ] Region 1 D [ ] Region 1 E [ ] All of Region 1 [ ] Area 2 ...
0
votes
0answers
28 views

Enter custom/new values in checkbox widget

After having perused widgets, it looks like there's great scope for persisting textfield-type values but not for allowing entry of new values in a checkbox-style display. Is there something about the ...
0
votes
0answers
41 views

Multi-column checkboxes render the checkboxes as columns

I've found this module https://www.drupal.org/project/multicolumncheckboxesradios to display a long list of checkboxes in columns. I've altered the form to add the required parameter as the module ...
0
votes
5answers
173 views

How do you render a set of checkboxes without using drupal_get_form()?

I want to use a '#type' => 'checkboxes' render array to display some checkboxes on the page. They aren't going to be part of a form that ever gets submitted, as they are purely for browser-side user ...
0
votes
1answer
37 views

The Expanding & Folding of the information related to a checkbox isn't working in drupal 7.34

I am using Drupal-7.34, and after enabling the following modules: Admin-Menu. Ctools. IMCE. IMCE Wysiwyg Bridge. Insert. jquery-Update. Libraries. Link. Pathauto. Token. Views. Wysiwyg. Webform. I ...
0
votes
0answers
40 views

How to make a checkbox for turn-off/on send e-mail notification each time when publish or change a node (drupal 7)

How can I make a checkbox for turn-off/on a sending e-mail notification to users each time when I publish or change a node (in drupal 7)? I mean, I don't need to send notifications each time I changed ...
0
votes
1answer
128 views

Drupal 7 | Checked box to display image (PHP IF) [closed]

I am slowly getting the hang of PHP. What I am trying to figure out is how to display an image (icon) if the checkbox is ticked. I understand its something like this but its returning errors. ...
1
vote
1answer
61 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
33 views

Create a checkbox in node with all users

I need create a checkbox in a custom node with all users I create the checkbox: if (!field_info_field('field_permissao_acesso') ) { $field = array('field_name' => 'field_permissao_acesso', ...
0
votes
1answer
98 views

Grey out other checkboxes

My scenario looks as follow: I have a form element of checkboxes, e.g. 3. If the rightmost checkbox is marked, the other 2 are greyed out and so on. I don't know how to do this, because if I use the ...
1
vote
1answer
89 views

Drupal doesn’t create clean links – checkbox doesn’t do anything

After migrating my Drupal 7.27 site to a new server, I can’t get Drupal to re-enable Clean URLs. The .htaccess file works and I can access clean URLS, but Drupal doesn’t create clean links. (For ...
0
votes
3answers
321 views

HTML after label radio button (depending on radio button)

I need to add some html to specific radio buttons. This is a picture to clarify what I'm looking for: As you can see I want to add some text to the options. These are radio buttons where you can ...
-1
votes
1answer
41 views

Translate a form

I've installed i18n module for taxonomy translation,and I have set in translatable mode. What I need is to have a form with some checkboxes in a multilingual site. I'm able to obtain that ...
0
votes
1answer
80 views

Drupal Boolean Field

I have a boolean checkbox field when displayed on a form it produces the following html snippet: <input type="checkbox" id="edit-field-is-ipa-und" name="field_is_ipa[und]" value="1" ...
0
votes
1answer
210 views

Save selected values from a checkbox into a field

I've the next form. $query = "SELECT name, tid FROM taxonomy_term_data WHERE vid=2 AND language = '$language_url';"; $result = db_query($query); foreach ($result as $row2) { ...
2
votes
3answers
385 views

How do I set descriptions to each checkbox option

Is there a way to set descriptions to each checkbox option? What I would like is for Option #1 to display and then directly below it a description for it, then Option #2 along with its description. I ...
0
votes
3answers
358 views

How to use checkbox under description of any webform field?

I am using webform module where I have a text field named Mobile Phone Number. I wanted to use checkbox under the text field as shown below: The content can be written in the description of that ...
0
votes
0answers
222 views

How to use select option values in another select option value?

I am using a webform module, where I have a select field with two values A|Animals B|Birds I am going to use another select field with some values like this A|Elephant B|Tiger C|Lion ...
3
votes
1answer
175 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
173 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
206 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 ...
1
vote
2answers
229 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
507 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
77 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 ...
0
votes
2answers
1k 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
103 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
2answers
67 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
94 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
96 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
208 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
55 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
118 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
104 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
1answer
165 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
110 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
378 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
165 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 ...