Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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".
Comment | File | Size | Author |
---|---|---|---|
#10 | checkboxes_and_radio-2495865-10.patch | 2.15 KB | sumitmadan |
#7 | webform_references-fix_conditional_js-2495167_2495865_7.patch | 2.15 KB | yaach |
#5 | webform_references-fix_conditional_js-2495167_2495865_3.patch | 733 bytes | yaach |
Comments
Comment #2
sumitmadan CreditAttribution: sumitmadan commentedThanks for the feature request @yalegria. Added checkbox and radio button as widget.
Comment #3
yaach CreditAttribution: yaach as a volunteer commentedThanks @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
Comment #4
yaach CreditAttribution: yaach as a volunteer commentedComment #5
yaach CreditAttribution: yaach as a volunteer commentedOoops!...sorry about that. Here is the patch again.
Comment #6
sumitmadan CreditAttribution: sumitmadan commentedThanks for the patch. Can you please do it for other type of components only?
Comment #7
yaach CreditAttribution: yaach as a volunteer commentedPatch includes fix for node and user too.
Comment #8
sumitmadan CreditAttribution: sumitmadan commented$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.
Comment #9
sumitmadan CreditAttribution: sumitmadan commented'#pre-render' => array(),
Please change this to '#pre_render' in 'webform_references.node.inc'.Comment #10
sumitmadan CreditAttribution: sumitmadan commentedComment #11
sumitmadan CreditAttribution: sumitmadan commentedComment #13
sumitmadan CreditAttribution: sumitmadan commentedThanks for the your contribution. :)
Comment #14
yaach CreditAttribution: yaach as a volunteer commentedCool, thanks for the last changes, didnt have the time to do it myself.
Comment #16
yaach CreditAttribution: yaach as a volunteer commentedI 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.
Comment #17
yaach CreditAttribution: yaach as a volunteer commentedComment #18
sumitmadan CreditAttribution: sumitmadan commentedCreated a new release for it. Thanks.