By nancydru on
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
Typo
That's actually $node_field[0]['value']
Nancy W.
Drupal Cookbook (for New Drupallers)
Adding Hidden Design or How To notes in your database
NancyDru
This patch solves it for me
http://drupal.org/node/134661#comment-623434
BY the way dru 5.7
computed field 5.x.1.2
Computed Field examples not working
After trying and failing myself, I tried the examples on the module download page. I get whatever is in the display box minus the actual value. Tried changing the various display options for the field and it simply doesn't show.
Did either of you solve this
Did either of you solve this problem ?
MY
Computed Code:
$node_field[0]['value'] = "xxx";
Display Format:
$display = $node_field_item['value']. " yyyy ";
all that is shown when node is displayed is yyyy
No
I'm not even sure that module is supported any more.
NancyDru
posted again
THis patch sorted out all my problems
http://drupal.org/node/134661#comment-623434
BY the way dru 5.7
computed field 5.x.1.2
my reply seemed to go in the wrong place ???? sorry