Order of user attributes on registration form

Permalink 1 user found helpful
I am using the following to list attributes on a custom registration form:

$attribs = UserAttributeKey::getRegistrationList();
$af = Loader::helper('form/attribute');
foreach($attribs as $ak) { ?> 
                           <fieldset>
                           <?php echo  $af->display($ak, $ak->isAttributeKeyRequiredOnRegister());   ?>
                           </fieldset>
                     <?php  }?>


It works but I notice that I can drag-and-drop to change the order of the attributes in the dashboard...however this order change isn't reflected on my form?

Just wondering if I am doing something incorrectly or if this does not work as expected.

 
moth replied on at Permalink Reply
moth
I'm using 5.5.2.1 and had this problem with User Attributes on the registration page.

It seems that the default attributes view ("Grouped by set") does NOT honour the drag and drop reordering.

If you change that view setting to "In one list", then reorder them, it seems to work fine.
PortobellaRain replied on at Permalink Reply
PortobellaRain
any idea how to add the user attribute set titles to the form also? can we add something into the register.php file to have this information displayed?
nicolechung replied on at Permalink Reply
If I remember correctly (it's been a while ago) I had to make a custom template of the form and hack that until I could see what I wanted.
PortobellaRain replied on at Permalink Reply
PortobellaRain
thanks Nicole, hopefully, I'll find a solution. :)