I need the ability for the user to choose from a list of options and put those options in order. I am using type checkbox and passing in an array of options to create the list.
I need to be able to check the options needed and sort them.
The form checkbox creation is fairly straightforward, but doesn’t appear to have a weight option for the individual checkboxes or really any attributes except value.
Any help would be appreciated. Thank you.
$ form[$ key]['articleFields'] = array( '#title' => t('article Fields'), '#type' => 'checkboxes', '#description' => t('Choose the fields you want selected'), '#options' => $ articleFields, '#default_value' =>$ articleFields_checked, );