Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of a resource field inside Flexible layout #58

Closed
jfeid opened this issue Mar 24, 2021 · 1 comment
Closed

Use of a resource field inside Flexible layout #58

jfeid opened this issue Mar 24, 2021 · 1 comment

Comments

@jfeid
Copy link

jfeid commented Mar 24, 2021

Hi,

Thanks for the superb package.

My issue regards the use of a resource field as source for a ConditionalContainer inside a Whitecube\NovaFlexibleContent\Flexible field. For example:

public function fields(Request $request)
{
    return [
        Boolean::make('Test'),
        Flexible::make('Flexible')->addLayout('Layout', 'layout', [
              ConditionalContainer::make([ Text::make('Demo') ])->if('test truthy true')
        ])
    ];
}

What I am looking for is to conditionally enable 'Demo' (inside Flexible) based on 'Test' (outside Flexible).
Is something that is possible with this package? If not, could you provide some guidelines on how to implement it?

Thanks

@milewski
Copy link
Member

There has been a discussion here: #17 no definitive solution yet, but depending on what you need the current state could help.. it is partially the only almost working solution out there... only validation is broken...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants