← Back to team overview

dhis2-devs team mailing list archive

How to order attribute options of person attribute

 

Dears,
I created a person attribute (named client-type) and made a registration
form to put it in.
Client type attribute has 5 options: 4 By UHN, 2 By staff, 1 Walk-in, 5
Other, 3 By CM
The order get change base on the name of attribute options.

I used hard code javascript to order those options in a dropdown list.
Is there any way to do this dynamically?

Thank you very much,
-- 
Thai Chuong
HCMUT - Computer science and engineering Faculty
Website: http://thuytruc.net
YM/Skype : thaichuong159
Email: thaichuong159@xxxxxxxxx
Phone: (+84) 918776134