Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-69286

Custom field: autogenerate shortname from display name

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7.7, 3.8.4, 3.9.1
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
      None
    • Affected Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE

      Description

      When adding a custom field (but this can be generalised elsewhere in each form where a shortname has to be entered), there should be suggested forms of the shortname for the field, obtained from its display name.

      For example: "My field 1 : extra field", there could be a suggestion of "myfield1_extrafield" for the shortname.

      This could help to generate unique names more easily.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              lmdavid Laurent DAVID
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: