Hello,
I am new in Drupal an PHP and I need a little bit help. I want to show the contend of the "Music" in another fields. The field "Music" is a field-list with a select-box.
The field has e.g. following parameters:
######################################
LABEL: Music
NAME: field_music
FIELD: List (text)
WIDGET: Check boxes / radio buttons
In the following list of terms are included:
rock
pop
Classik
soul
jazz
This looks in the Computed Field with me once that way.
Computed code (PHP)
$ entity_field [0] ['value'] = "";
Display code (PHP)
$ = $ display_output entity_field_item ['value'];#######################################
When I change the parameter in this way :
Computed code (PHP)
$entity_field[0]['value'] = $entity->field_music['Music'][0]['value'];
Display code (PHP)
$display_output = $entity->field_music['Music'][0]['value']I have the follow error:
Notice: Undefined property: Profile::$field_music in eval() (line 1 of /...../all/modules/computed_field/computed_field.module(465) : eval()'d code).
Please can anybody help me!
Thanks a lot ...