Closed (duplicate)
Project:
Computed Field
Version:
5.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Aug 2007 at 23:21 UTC
Updated:
10 Sep 2007 at 07:11 UTC
I'm trying to set a field based on the value of another. "field_cert_status" is a lookup list. If its (stored) value is not "NC" then I want to prefill "cert_date" with todays date (actually "date('Y/m/d')"). I'm getting nowhere; the field doesn't show even tough it's marked required. So I just hard-coded a value for the "Computed code" as $node_field[0]['value'] = '2007-08-14';. I then set "Display Format" to $display = '1999-12-31';. Nothing shows! The field is not even present on the CCK form. What do I have to do to use this module?
BTW, the actual need, once I get anything out, is to have the field present (and required) or not present based on "field_cert_status."
Comments
Comment #1
nancydrubump
Comment #2
mooffie commentedComputed fields aren't shown on forms. Their content is computed, not typed in. I don't think this module can help you. I replied here.