Required fields use Asterisks (*) to mark fields as required.
Fields marked for content completion are not required, but (more) important in a semantic way.

Lets say large (node) forms can be saved by a user and edited several times. So we have to disable required fields to make saving possible. Submission of this form should only be possible when all fields handled by content complete are filled. Now it would be great for a user to see which of the 50 fields are really necessary to fill in.

If there was an additional like class="content_complete" that would be great. So every complete field could be handled by css.

cheers, Ronald

Comments

pvhee’s picture

If there was an additional like class="content_complete" that would be great. So every complete field could be handled by css.

That's a very good suggestion, and I'd be willing to accept any patch on this.

tstackhouse’s picture

Subscribing. I have a need for this also and this seems like a straightforward addition.

tstackhouse’s picture

StatusFileSize
new1.99 KB

Here's a preliminary patch to wrap a div.content_complete around the form item. Ideally, this class would be shared on the div.form-item, but I could only figure out how to do this or put it directly on the form element, which was too specific for my (and likely many other folk's) use-case.

tstackhouse’s picture

StatusFileSize
new2.16 KB

Here is an improved patch with the code cleaned up a bit and a few tweaks that should let it work with most, if not all CCK field types.

pvhee’s picture

Status: Active » Needs review

Thanks for the patch tstackhouse. I'm a bit hesitant to commit this though, it would be good though to add the class only and not in an extra div. What is your opinion?