In Webform grid elements, the radio button for specifying the default value appears for both options and questions, though it does nothing for either. Since defaults cannot be set, the radio button should not appear.

There is a feature request in Webform to make it possible to set a default option for grid components: #1534788: Allow default values for Grid components

CommentFileSizeAuthor
#2 webform_grid_no_default_1662892.patch919 bytesLiam Morland
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

Thanks Liam. I believe Options Element has an option for whether a default value should be able to be provided or not. We should check that we're A) using this option and B) Options Element is properly respecting the setting. Looks like the property is called #default_value_allowed, and it should be set to FALSE.

Liam Morland’s picture

Project: Options Element » Webform
Version: 7.x-1.7 » 7.x-4.x-dev
Status: Active » Needs review
FileSize
919 bytes

This patch to Webform adds #default_value_allowed = FALSE, hiding the default radio buttons.

quicksketch’s picture

Status: Needs review » Fixed

Thanks, committed to 6.x-3.x, 7.x-3.x, and 7.x-4.x, all of which had the problem.

Status: Fixed » Closed (fixed)

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