开发者

Drupal save a node with required fields not complete

I have a content type which has a lot of fields 50+. 30 or so are required fields. I want my user to be able so save the node before 开发者_JAVA技巧all the required fields have been filled in. The node can not be published until all the required fields have been filled in. Is there a way I can do this.


Not directly. Required fields are exactly that. You'll need to make your fields optional and handle the node save event and prevent publishing until each of the fields has been filled in. If you don't feel like all that php, Rules module can handle this kind of thing very nicely - http://drupal.org/project/rules.

Another alternative is that you might be better off with something like a webform - http://drupal.org/project/webform, though I don't know if it has any save and resume functionality out of the box so you might need to check that out first.


This module will do the job:

http://drupal.org/project/multistep

You can split your form to steps and only the fields in the current step have to be filled by the user.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜