Reputation: 20252
I have defined a select like this in the TCA file of my model:
'test' => array(
'exclude' => 1,
'label' => 'test',
'config' => array(
'type' => 'select',
'items' => array(
array("A", "A"),
array("Foo", "FOO"),
...
The input field format
should only appear in the backend, if the option "Foo" is selected.
Attempt 1:
'format' => array(
'displayCond' => 'FIELD:test.config.items:=:Foo',
...
Attempt 2:
'format' => array(
'displayCond' => 'FIELD:test:=:Foo',
...
Is this possible?
Upvotes: 1
Views: 1714
Reputation: 2685
Attempt 2 looks correct to me. Did you add 'requestUpdate' => 'test'
to the ['ctrl'] section of the TCA to make the form reload after changing the field "test"?
Upvotes: 3