Skip to content

Value or empty relation assertion hidden field #65

@VojtaStanek

Description

@VojtaStanek

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions