All Projects → dillingham → nova-conditional-fields

dillingham / nova-conditional-fields

Licence: MIT license
WIP: Conditionally display fields based on another field's value

Programming Languages

PHP
23972 projects - #3 most used programming language
Vue
7211 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to nova-conditional-fields

nova-blogify-tool
Create a simple blog in a few seconds. Powered by Laravel Nova.
Stars: ✭ 20 (-47.37%)
Mutual labels:  laravel-nova
nova-inspire
The best way to connect with your customers is by reaching out and inspiring them. ~ Me
Stars: ✭ 14 (-63.16%)
Mutual labels:  laravel-nova
Lang
List of 78 languages for Laravel Framework 4, 5, 6, 7 and 8, Laravel Jetstream , Laravel Fortify, Laravel Breeze, Laravel Cashier, Laravel Nova and Laravel Spark.
Stars: ✭ 6,285 (+16439.47%)
Mutual labels:  laravel-nova
nova-sluggable
Slug field for Laravel Nova
Stars: ✭ 40 (+5.26%)
Mutual labels:  laravel-nova
select-auto-complete
An auto-completing Laravel Nova search field
Stars: ✭ 34 (-10.53%)
Mutual labels:  laravel-nova
nova-translatable
Nova Field for spatie/laravel-translatable package.
Stars: ✭ 84 (+121.05%)
Mutual labels:  laravel-nova
nova-dynamic-field
Dynamic field for Laravel Nova
Stars: ✭ 18 (-52.63%)
Mutual labels:  laravel-nova
nova-gridder
Customize Nova Resource Details using Tailwind Grid System and more
Stars: ✭ 18 (-52.63%)
Mutual labels:  laravel-nova
nova-url-field
A URL input and link field for Laravel Nova
Stars: ✭ 96 (+152.63%)
Mutual labels:  laravel-nova
nova-hidden-field
A Laravel Nova Hidden field.
Stars: ✭ 32 (-15.79%)
Mutual labels:  laravel-nova
laravel-nova-order-nestedset-field
Laravel Nova field that make your resources orderable
Stars: ✭ 21 (-44.74%)
Mutual labels:  laravel-nova
nova-horizon-stats
Nova cards for Laravel applications that use Laravel Horizon
Stars: ✭ 31 (-18.42%)
Mutual labels:  laravel-nova
laravel-nova-visual-composer
Visual Composer for Laravel Nova
Stars: ✭ 15 (-60.53%)
Mutual labels:  laravel-nova
nova-system-resources
Display the system usage in Laravel-Nova
Stars: ✭ 30 (-21.05%)
Mutual labels:  laravel-nova
nova-errors
Display all form errors in a modal at the top of the page.
Stars: ✭ 16 (-57.89%)
Mutual labels:  laravel-nova
nova-qrcode-field
A Laravel Nova field to generate QR Code
Stars: ✭ 28 (-26.32%)
Mutual labels:  laravel-nova
nova-grouped-field
Combine multiple Nova fields as one field output
Stars: ✭ 43 (+13.16%)
Mutual labels:  laravel-nova
nova-list-card
Add a variety of resource lists to Nova dashboards
Stars: ✭ 39 (+2.63%)
Mutual labels:  laravel-nova
nova-rating-field
A Star rating field to use in your Laravel Nova apps.
Stars: ✭ 42 (+10.53%)
Mutual labels:  laravel-nova
nova-settings
A tool for editing settings on your project using akaunting/setting package on Laravel Nova
Stars: ✭ 18 (-52.63%)
Mutual labels:  laravel-nova

Nova Conditional Fields

Latest Version on Github Total Downloads Twitter Follow

Conditionally display fields based on another field's value

Install

composer require dillingham/nova-conditional-fields

Usage

use NovaConditionalFields\Condition;

Example using a boolean field

Boolean::make('Show Fields'),

Condition::make('Show Fields')
    ->when(true, [
        Text::make('Extra Setting 1'),
        Text::make('Extra Setting 2'),
        Text::make('Extra Setting 3'),
    ])

An example using select

Select::make('Type')->options([
    'type-1' => 'Type 1',
    'type-2' => 'Type 2',
]),

Condition::make('Type')
    ->fieldsWhen('type-1', [
        Text::make('Setting 1'),
        Text::make('Setting 2'),
        Text::make('Setting 3'),
    ])->when('type-2', [
        Text::make('Setting 4'),
        Text::make('Setting 5'),
        Text::make('Setting 6'),
    ])

Coming soon

-- BelongsTo support

-- whenTrue

-- whenNot

-- whenEmpty


Author

Hi 👋, Im Brian Dillingham, creator of this Nova package and others

Hope you find it useful. Feel free to reach out with feedback.

Follow me on twitter: @im_brian_d

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].