interface
interface copied to clipboard
Value or empty relation assertion hidden field
Should be useful when we have DiscriminatedBlocks
and use different set of fields in each block and we want to unset fields or relations not used in the block and we want to unset them when we change type.
Illustrative example:
<DiscriminatedBlocks field="type" label="Type" >
<Block discriminateBy="typeA" label="Type A">
<SelectField label="Some useful stuff" field="fieldOnTypeA" options="Foo.bar" />
<AssertNull field="fieldOnTypeB" />
</Block>
<Block discriminateBy="typeB" label="Type B">
<SelectField label="Different stuff" field="fieldOnTypeB" options="Foo.bar" />
<AssertNull field="fieldOnTypeA" />
</Block>
</DiscriminatedBlocks>