I altered a form, and I added a $form['priorities'] form element.

Why is it appearing right after the title form element, and not at the bottom of the form? How can I make it at the bottom?


  • 2
    You can assign #weight attribute for that. I mean when you alter form assign #weight to your new field and give their weight last compare to other component. Apr 4, 2017 at 5:36

1 Answer 1


Like KrishaWeb said you need to add a #weight attribute to your new element.

It would look like:

$form['priorities'] = array(
  '#weight' => 99,

You can also set weights on the other form elements so the form is explicitly in order.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.