1. Moodle
  2. MDL-10504

Allow custom user profile fields to be ordered anywhere on the edit profile form


    • Type: Improvement Improvement
    • Status: Development in progress
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.9.3, 2.0, 2.4
    • Fix Version/s: DEV backlog
    • Component/s: Administration
    • Labels:


      The new forms system and custom user profile fields capability in Moodle is a huge step in the right direction. Many thanks!

      However, the ability to order these fields and place them where you want them on the user profile form is limited to just ordering them among each other in their own separate section of the form. What would truly make this capability useful would be to be able to situate your custom user fields among stock Moodle fields in any order you want.

      For example, one of my custom fields is "State/Province". It is of little use to have "Address" and "City" (both default Moodle fields) appear near the top of the edit profile page, and then to have "State/Province" way down at the bottom in my "custom fields" area. I want my users to be able to enter their address data all together, like they are used to doing on every other website where they've EVER entered their mailing address. So until Moodle allows me to place custom fields wherever I want in the form (including intermixing with default Moodle fields), this is of limited usefulness.

      To see an example of the result that I'm looking for, you can see our site's current Signup form (the custom fields were accomplished by adding fields to the mdl_user table and adapting standard formslib code to include these additional fields):

        Gliffy Diagrams

          Issue Links


            Rob Hindman created issue -
            Tim Hunt made changes -
            Field Original Value New Value
            Component/s Administration [ 10050 ]
            Component/s Forms Library [ 10091 ]
            Affects Version/s 1.9.3 [ 10290 ]
            Affects Version/s 1.8.1 [ 10213 ]
            Assignee Jamie Pratt [ jamiesensei ] [ ]
            Tim Lock made changes -
            Attachment MDL-10504-province.patch [ 18639 ]
            Anthony Borrow made changes -
            Affects Version/s 2.0 [ 10122 ]
            Dan Marsden made changes -
            Assignee [ ] Dan Marsden [ danmarsden ]
            Dan Marsden made changes -
            Link This issue is duplicated by MDL-22256 [ MDL-22256 ]
            Dan Marsden made changes -
            Attachment user_profile_field_order.patch [ 20106 ]
            Martin Dougiamas made changes -
            Workflow jira [ 21590 ] MDL Workflow [ 42390 ]
            Jenny Gray made changes -
            Link This issue has been marked as being related by MDL-26346 [ MDL-26346 ]
            Martin Dougiamas made changes -
            Workflow MDL Workflow [ 42390 ] MDL Full Workflow [ 70804 ]
            Dan Marsden made changes -
            Pull Master Diff URL
            Pull Master Branch master_MDL-10504
            Fix Version/s DEV backlog [ 10464 ]
            Pull from Repository git://
            Labels triaged
            Affects Version/s 2.4 [ 12255 ]
            Dan Marsden made changes -
            Testing Instructions There is no core code that implements this function but to see an example of how to use it see:
            Dan Marsden made changes -
            Status Open [ 1 ] Waiting for peer review [ 10012 ]
            Dan Marsden made changes -
            Attachment user_profile_field_order.patch [ 20106 ]
            David Monllaó made changes -
            Original Estimate 0 minutes [ 0 ]
            Remaining Estimate 0 minutes [ 0 ]
            Status Waiting for peer review [ 10012 ] Peer review in progress [ 10013 ]
            Peer reviewer davmon
            David Monllaó made changes -
            Status Peer review in progress [ 10013 ] Development in progress [ 3 ]
            David Monllaó made changes -
            Peer reviewer davmon


              • Votes:
                51 Vote for this issue
                36 Start watching this issue


                • Created: