I've installed the Computed Field module following the documentation (enabled the CCK/Content module, then enables Computed Field).
I can add Computed Fields, and set the options, but the fields will never show up on the node/add page. The only HTML rendered is an empty wrapper, i.e.:
<div id="edit-field-id-de-evento" class="form-field-type-computed form-field-name-field-id-de-evento field-widget-computed form-wrapper"></div></code>
I can set up the display on Display Fields, and all the possible values are being shown.
Checking/unchecking "Store value in the database" makes no difference.
No abnormal messages on Drupal logs.
I'm using the module as user 0, so this should be no permissions issues. Maybe I am missing something?
Comments
Comment #1
jorge.suarez commentedI've added now some debugging code to see what's happening. All seems normal to me.
The syslog output when loading the add/node page or edit is this:
The provided PHP code was just this:
So, all seems to be OK. What's wrong? :(
Comment #2
mboeschen commentedI am having the exact same issue. Will not display or write to database, even when putting in a direct value.
Comment #3
mboeschen commentedComment #4
mboeschen commentedI believe I have found the cause:
DO NOT USE
<?PHPand?>in your code!!Comment #5
cogno commentedI am also having the same problem. My computed fields don't show up on my node/add form, just the empty wrapper. it *does* show up on the node page itself, however. The calculation and display code I'm using for one of the fields is:
Computed Code:
Display Code:
$display_output = "$" . $entity_field_item['value'];Pretty sure I remember it displaying fine on the node/add page before....