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:
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.
$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.
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?
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.
thanks Nicole, hopefully, I'll find a solution. :)
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.