I have used the Term Reference option for a field I have. But I want to display all the terms as checkboxes or radio buttons, however the only two options available are "Select List" and "Autocomplete".

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

  • sumitmadan committed 800de5e on 7.x-1.x
    Issue #2495865 by yalegria: Checkboxes and radio Buttons should be an...
sumitmadan’s picture

Status: Active » Fixed

Thanks for the feature request @yalegria. Added checkbox and radio button as widget.

yaach’s picture

Thanks @sumitmadan for the work on the feature request. I found out that - this also relates to issue #2495167 - if the field is used with webform conditionals, the webform javascript was broken. This basically because the checkboxes/radios field type on webform_references did not have a wrapper class "webform-component" which is needed on webform.js.

I have created a patch.

Thanks

yaach’s picture

yaach’s picture

Ooops!...sorry about that. Here is the patch again.

sumitmadan’s picture

Status: Fixed » Needs work

Thanks for the patch. Can you please do it for other type of components only?

yaach’s picture

Patch includes fix for node and user too.

sumitmadan’s picture

$form_item['#theme_wrappers'] = array($form_item['#type'],'webform_element');

Please add a space between comma and 'webform_element' as per drupal standard.

Note : Please change status to Needs Review after submitting a patch.

sumitmadan’s picture

'#pre-render' => array(), Please change this to '#pre_render' in 'webform_references.node.inc'.

sumitmadan’s picture

Status: Needs work » Needs review
FileSize
2.15 KB
sumitmadan’s picture

Version: 7.x-1.5 » 7.x-1.6

  • sumitmadan committed ee0b7e4 on 7.x-1.x authored by yalegria
    Issue #2495865 by yalegria, sumitmadan: Checkboxes and radio Buttons...
sumitmadan’s picture

Status: Needs review » Fixed

Thanks for the your contribution. :)

yaach’s picture

Cool, thanks for the last changes, didnt have the time to do it myself.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

yaach’s picture

I dont think the patch has been merge with the original. I just checkout the module for another site project and the conditionals were not working, I didn't see the patch I created in the downloaded files.

yaach’s picture

Status: Closed (fixed) » Patch (to be ported)
sumitmadan’s picture

Status: Patch (to be ported) » Fixed

Created a new release for it. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.