H
H
Henry Chinasky2019-03-05 11:07:17
Drupal
Henry Chinasky, 2019-03-05 11:07:17

How to save checkbox value without submit?

Good day, dear Drupal experts on the 7th. Tell me how to save the value of the checkbox using Drupal (without the submit button)? The code with the checkbox itself:

function checkbox_ajax($form, &$form_state) {
  $element = array(
    '#type' => 'checkboxes',
    '#options' => drupal_map_assoc(array(t('Выполнено'), t('Не выполнено'))),
    '#parents' => array(),
   );
   
   $form_state = array('values' => array());
   $form_Build = form_builder('just_test', $element, $form_state);
   return drupal_render($form_Build);
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question