Hi,

I have a content type that has a number of fields that are for internal admin use only.. Mostly dates and a "computed_field"..

When a node is created these values need to have default values set..

If the content is created by staff users (with full permissions to the field) the defaults work perfectly.. If the content is created by a customer the values are empty which breaks other functionality..

I believe it should always accept defaults is specified regardless of field permissions because if the intention was for fields to be black the site builder wouldn't have specified a default value..

Is there a work around for this situation?

Thanks..

Comments

Version:7.x-1.0-beta2» 7.x-1.x-dev

The problem here, as I see it, is that field default values are actually used as default (initial) values for the form widgets. No field widget rendered on a form = no default value set.

A workaround could be setting the default value(s) using Rules by reacting on the "After saving new content" event.

it's not necessary to have a widget in order to set a form value.
Field Permissions should set the default regardless of how the UI is presented.