In Drupal, how do you get the submit button to appear last on a create content form without making the entire form from scratch? I can set the weight of the submit button using code, but it never goes below any custom fields I've created. If I drag a lot of custom fields from the bottom of the form to the top, the submit button only stays below about 5 of the fields and then all the other fields get stacked below it. It feels like the submit button is simply stuck in one position on the screen. How do I fix that?

Comments

nevets’s picture

Normally the submit button is last, how are you creating your custom fields?

DylanWest’s picture

I'm making them in cck, and afaik I'm not doing anything out of the ordinary.

BIGREDPAUL’s picture

I'm also having this trouble. Are you using the edit/create form from panels.
I'm also using form filter.
It seems that the save and preview buttons appear under title form and then all cck is listed under that.

oranges13’s picture

If you disable javascript in your browser and go to the manage fields page, you'll see the weights of your cck fields. Most likely they're all greater than zero.

The submit button appears directly beneath the item with weight zero, so you'll have to manually edit all the weights to be either zero or lower (negative)

It's a pain in the butt!

aytee’s picture

It seems silly that it was necessary to do it this way, but it worked! It only took a minute so it's a quick solution.

youkho’s picture

Try the module http://drupal.org/project/nodeformcols with it you can position the button every field and buttons the way you want.

nevets’s picture

The display suite module now provides a way to layout forms.