Skip to content

Dinamic conditions on ElementField #63

Answered by adamberecz
dan-leech asked this question in Questions
Discussion options

You must be logged in to vote

If you are using it for as a configuration field the condition path should include the section as well.

So this should do the trick:

   get schema() {
        return {
            cms_action: {
                type: 'object',
                label: 'CMS Action',
                schema: {
                    request: {
                        type: 'select',
                        label: 'CMS Action',
                        items: {
                            // actions
                            'action1': 'Action1',
                            'action2': 'Action2',
                        },
                    },
                    // Action1
                    action1: {

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dan-leech
Comment options

@adamberecz
Comment options

Answer selected by dan-leech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants