By DylanWest on
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
Normally the submit button is
Normally the submit button is last, how are you creating your custom fields?
I'm making them in cck, and
I'm making them in cck, and afaik I'm not doing anything out of the ordinary.
Did you find a fix for this.
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.
If you disable javascript in
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!
Disabling JS worked
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.
Try the module
Try the module http://drupal.org/project/nodeformcols with it you can position the button every field and buttons the way you want.
The display suite module now
The display suite module now provides a way to layout forms.