Moodle
  1. Moodle
  2. MDL-26344

Offer a new custom user profile field type: radio buttons

    Details

    • Database:
      Any
    • Difficulty:
      Moderate
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_24_STABLE
    • Rank:
      15939

      Description

      A new radio button type would be similar to the existing menu type, but rather than displaying a <select> form field, it would output a radio button group. In Drupal CCK radio buttons are actually an alternative form of the select type. So there are two possibilities for us: 1) extend the existing menu type to offer a radio button display or 2) add an entirely new type. The latter is probably simpler for people to understand - in my first experience with Drupal I thought it didn't do radio buttons!!

      OU designers would prefer radio buttons to be offered horizontally rather than the default vertical. This can be achieved by extending the "felement fradio" class automatically assigned to these fields. It would allow more flexibility to add a horizontal or vertical option to the custom field definition form and depending on the setting chosen, add an extra "horizontal" class, which would be defined in the standard stylesheets to display inline.

      I have a number of requests for this (for our Sept 2011 release) and am more than happy to program myself and offer a patch. If whoever triages this thinks that's OK, please assign to me and I will add to the OU development schedule over the next few months.

        Activity

        Jenny Gray created issue -
        Petr Škoda made changes -
        Field Original Value New Value
        Fix Version/s DEV backlog [ 10464 ]
        Fix Version/s 2.0.2 [ 10421 ]
        Martin Dougiamas made changes -
        Workflow MDL Workflow [ 67619 ] MDL Full Workflow [ 75843 ]
        Dan Marsden made changes -
        Labels users patch triaged users
        Affects Version/s 2.4 [ 12255 ]

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: