TCA basics · Question 10 of 12

The field external_url should only appear in the form if the value external is selected in the field link_type. Which setting on the column external_url fits?

1 answer is correct. Medium

Show answer

Answer

  • A 'displayCond' => 'FIELD:link_type:=:external'

Explanation

displayCond is set on column level and has the form FIELD:<field>:<operator>:<value> for field comparisons. Several conditions can be combined with AND or OR in an array. The variants showIf and condition do not exist in the TCA, and without the prefix FIELD the expression is not recognized as a condition.

Certifications & exams

Which exam comes next?

You can already practise for 19 exams, and 21 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications