Hil to all.
I want multiple column in webform for my checkbox.
I have followed all the steps of the thread http://drupal.org/project/multicolumncheckboxesradios in the section Webform usage: add a hook_form_FORM_ID_alter() .
I write de module in sites/all/module with the name checkbox. i write 3 source file..... chechkbox.info , checkbox.module and checkbox.css with the code.
in checkbox.module i write this
function HOOK_form_webform_client_form_24_alter(&$form) {
$form['submitted']['categorias']['#multicolumn'] = array('width' => 2);
$form['submitted']['categorias']['#process'][] = 'multicolumncheckboxesradios_element_process';
}
in the checkbox.css
.multicolumncheckboxesradios-column
{
float: left;
width: 10em;
}
The html code of the form, is this....
form action="/node/24" accept-charset="UTF-8" method="post" id="webform-client-form-24" class="webform-client-form" enctype="multipart/form-data"
class="webform-component webform-component-checkboxes" id="webform-component-categorias">
label class="option" for="edit-submitted-categorias-1"> 1 Estrella /div>
div class="form-item" id="edit-submitted-categorias-2-wrapper">
label class="option" for="edit-submitted-categorias-2"> 3 Estrellas
/div>
/div>
/div>
/div>
input type="hidden" name="details[page_num]" id="edit-details-page-num" value="1" />
input type="hidden" name="details[page_count]" id="edit-details-page-count" value="1" />
input type="hidden" name="details[finished]" id="edit-details-finished" value="0" />
input type="hidden" name="form_build_id" id="form-3d171bd1ee070f904dbf03129f02dafd" value="form-3d171bd1ee070f904dbf03129f02dafd" />
input type="hidden" name="form_token" id="edit-webform-client-form-24-form-token" value="d2570efaee33b92d376746b072998696" />
input type="hidden" name="form_id" id="edit-webform-client-form-24" value="webform_client_form_24" />
div id="edit-actions" class="form-actions form-wrapper">
/div>
/div>
/div>
The problem, it does not work. Can you help me.
thanks and regards
Comments
The html code of the form, is
The html code of the form, is this....
form action="/node/24" accept-charset="UTF-8" method="post" id="webform-client-form-24" class="webform-client-form" enctype="multipart/form-data"
label class="option" for="edit-submitted-categorias-1" input type="checkbox" name="submitted[categorias][<p>0]" id="edit-submitted-categorias-1" value="<p>0" class="form-checkbox" /
change this perhaps can help
change this perhaps can help :
--------------------------------------------------------------------------------------------------------
if you can use drupal why use others?
VicTheme.com
_
You need to use <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags when posting code.