Repository: statamic/cms (PHP)

Issue:
Field config toggles with default `true` can't be set to `false`
### Bug description

It's not possible to set a field config toggle value that has a default of `true` to `false` through the blueprint editor. When you save the key is removed from the YAML. I'm guessing this is caused by https://github.com/statamic/cms/pull/9685.

### How to reproduce

1. Open a blueprint
2. Add a field
3. Switch off one of the enabled toggles eg. Duplicate
4. Apply, Save, Reload
5. Open the field config, the toggle is back on

### Logs

_No response_

### Environment

```yaml
Statamic
Addons: 5
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.0.1 PRO
```


### Installation

Fresh statamic/statamic site via CLI

### Additional details

_No response_
Adding a second asset container for first time causes error
### Bug description

When adding a second asset container for the first time the site breaks with the following error: "An asset container has not been configured"

This error occurs wherever an asset fieldtype is included in a template.

As far as I can see the asset fieldtype does not require a container to be selected for as long as the site only has one container. However, once you add a second container the asset fieldtypes fail as no container is assigned.

### How to reproduce

Create a new site. Add one asset container. Add an asset fieldtype. Include field in a template. Add a second asset container.

### Logs

```shell
[2024-05-13 13:52:23] local.ERROR: An asset container has not been configured {"userId":1,"exception":"[object] (Statamic\\Fieldtypes\\Assets\\UndefinedContainerException(code: 0): An asset container has not been configured at /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/Fieldtypes/Assets/Assets.php:204)
[stacktrace]
#0 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/Fieldtypes/Assets/Assets.php(163): Statamic\\Fieldtypes\\Assets\\Assets->container()
#1 [internal function]: Statamic\\Fieldtypes\\Assets\\Assets->Statamic\\Fieldtypes\\Assets\\{closure}('newhome2023.jpg', 0)
#2 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(605): array_map(Object(Closure), Array, Array)
#3 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(777): Illuminate\\Support\\Arr::map(Array, Object(Closure))
#4 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/Fieldtypes/Assets/Assets.php(163): Illuminate\\Support\\Collection->map(Object(Closure))
#5 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/Fields/Value.php(85): Statamic\\Fieldtypes\\Assets\\Assets->augment(Array)
#6 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/Tags/Context.php(20): Statamic\\Fields\\Value->value()
#7 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/Tags/Glide.php(35): Statamic\\Tags\\Context->value('hero_image')
#8 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/Tags/Tags.php(152): Statamic\\Tags\\Glide->wildcard('hero_image')
#9 [internal function]: Statamic\\Tags\\Tags->__call('heroImage', Array)
#10 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/View/Antlers/Language/Runtime/NodeProcessor.php(1597): call_user_func(Array)
#11 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/View/Antlers/Language/Runtime/NodeProcessor.php(2324): Statamic\\View\\Antlers\\Language\\Runtime\\NodeProcessor->reduce(Array)
#12 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/View/Antlers/Language/Runtime/NodeProcessor.php(750): Statamic\\View\\Antlers\\Language\\Runtime\\NodeProcessor->reduce(Array)
#13 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/View/Antlers/Language/Runtime/RuntimeParser.php(381): Statamic\\View\\Antlers\\Language\\Runtime\\NodeProcessor->render(Array)
#14 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/View/Antlers/Language/Runtime/RuntimeParser.php(773): Statamic\\View\\Antlers\\Language\\Runtime\\RuntimeParser->renderText('<!doctype html>...', Array)
#15 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/View/Antlers/Engine.php(93): Statamic\\View\\Antlers\\Language\\Runtime\\RuntimeParser->parseView('/Users/jolora/C...', '<!doctype html>...', Array)
#16 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/View/View.php(208): Statamic\\View\\Antlers\\Engine->get('/Users/jolora/C...', Array)
#17 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/View/View.php(191): Illuminate\\View\\View->getContents()
#18 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/View/View.php(160): Illuminate\\View\\View->renderContents()
#19 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/View/View.php(123): Illuminate\\View\\View->render()
#20 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/Http/Responses/DataResponse.php(146): Statamic\\View\\View->render()
#21 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/Http/Responses/DataResponse.php(42): Statamic\\Http\\Responses\\DataResponse->contents()
#22 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/Structures/Page.php(420): Statamic\\Http\\Responses\\DataResponse->toResponse(Object(Illuminate\\Http\\Request))
#23 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Routing/Router.php(900): Statamic\\Structures\\Page->toResponse(Object(Illuminate\\Http\\Request))
#24 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Routing/Router.php(885): Illuminate\\Routing\\Router::toResponse(Object(Illuminate\\Http\\Request), Object(Statamic\\Structures\\Page))
#25 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Routing\\Router->prepareResponse(Object(Illuminate\\Http\\Request), Object(Statamic\\Structures\\Page))
#26 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#27 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/StaticCaching/Middleware/Cache.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\StaticCaching\\Middleware\\Cache->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#29 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/Http/Middleware/AuthGuard.php(14): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#30 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\AuthGuard->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/Http/Middleware/AddViewPaths.php(19): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\AddViewPaths->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/Http/Middleware/Localize.php(38): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\Localize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#35 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/Http/Middleware/HandleToken.php(13): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#36 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\HandleToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/Http/Middleware/StacheLock.php(29): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\StacheLock->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#41 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(88): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#42 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#47 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#48 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#49 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#50 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(75): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#51 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#55 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#56 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#57 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#58 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#59 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/Http/Middleware/StopImpersonating.php(12): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\StopImpersonating->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#61 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/Http/Middleware/DisableFloc.php(17): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#62 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\DisableFloc->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#63 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/Http/Middleware/CheckMultisite.php(15): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#64 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CheckMultisite->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/Http/Middleware/CheckComposerJsonScripts.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CheckComposerJsonScripts->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#67 /Users/jolora/Code/wirralworktops/vendor/statamic/cms/src/Http/Middleware/PoweredByHeader.php(18): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#68 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\PoweredByHeader->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#69 /Users/jolora/Code/wirralworktops/vendor/livewire/livewire/src/Features/SupportDisablingBackButtonCache/DisableBackButtonCacheMiddleware.php(19): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#70 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Livewire\\Features\\SupportDisablingBackButtonCache\\DisableBackButtonCacheMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /Users/jolora/Code/wirralworktops/vendor/laravel/nova/src/Http/Middleware/ServeNova.php(23): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Laravel\\Nova\\Http\\Middleware\\ServeNova->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#73 /Users/jolora/Code/wirralworktops/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(66): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Barryvdh\\Debugbar\\Middleware\\InjectDebugbar->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#75 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#76 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#77 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#78 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#79 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(51): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#80 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#81 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#82 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#83 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(110): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#84 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#85 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#86 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#87 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#88 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#89 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#90 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#91 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#92 /Users/jolora/Code/wirralworktops/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1172): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#93 /Users/jolora/Code/wirralworktops/public/index.php(17): Illuminate\\Foundation\\Application->handleRequest(Object(Illuminate\\Http\\Request))
#94 /Users/jolora/.composer/vendor/laravel/valet/server.php(110): require('/Users/jolora/C...')
#95 {main}
"}
```


### Environment

```yaml
Laravel Version: 11.7.0
PHP Version: 8.3.6
Composer Version: 2.6.5
Environment: local
Debug Mode: ENABLED
URL: wirralworktops.test
Maintenance Mode: OFF

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: database
Database: mysql
Logs: stack / single
Mail: log
Queue: database
Session: database

Livewire
Livewire: v3.4.12

Statamic
Addons: 3
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.0.2 PRO

Statamic Addons
jonassiewertsen/statamic-livewire: 3.3.1
mitydigital/statamic-google-fonts: 2.0.0
statamic-rad-pack/runway: 7.0.0
```


### Installation

Existing Laravel app

### Additional details

_No response_
Form FieldTypes not recording max_items: 1
### Bug description

I am currently using statamic v5, I think I have found an issue with the Form FieldTypes. https://statamic.dev/fieldtypes/form

My statamic 5 is a fresh install not an upgrade from v4.

in Statamic v4, if you change the max_items it will populate the yaml file with max_items: {whatever number the user has selected}

However in Statamic 5, if you set the max_items to something above 1 then it will contain the correct value, however going back to 1 as a value this data disappears.

This is an issue when using the form fieldtype in form:create tags.

### How to reproduce

Just load any page that needs to use the form_fieldtype component.
![Screenshot 2024-05-13 at 15 31 35](https://github.com/statamic/cms/assets/86749311/0b688e96-e140-4040-b4ff-a2e9ffd8a6b8)

This is my fieldset for Form Request
![Screenshot 2024-05-13 at 15 30 06](https://github.com/statamic/cms/assets/86749311/fea908d4-3cac-40ac-99c1-3bdd36e10fb5)

These are my forms
![Screenshot 2024-05-13 at 15 30 15](https://github.com/statamic/cms/assets/86749311/59b64f6d-fbd7-4381-a13f-dc5cbec75ce0)

These are what happens when you set the max_items in the original form_fieldtype
![Screenshot 2024-05-13 at 13 52 42](https://github.com/statamic/cms/assets/86749311/7018d399-5656-4ece-83d6-7d4d5b3fdd62)
![Screenshot 2024-05-13 at 13 53 20](https://github.com/statamic/cms/assets/86749311/8d56178c-b341-40f2-9c57-0af33c4e07d2)

if its more than 1 then it shows in the yaml, if its 1 then it doesnt display
![Screenshot 2024-05-13 at 13 53 28](https://github.com/statamic/cms/assets/86749311/6391cd52-2191-43be-b008-b54a8eec9878)

and because you need the max_items: 1 to be there otherwise it creates an error as it reads it as an array when it shouldnt do.

### Logs

```shell
2024-05-13 12:07:26] local.ERROR: A form handle is required on Form tags. Please refer to the docs for more information. {"userId":"cc92a5c9-0eab-4500-ad2a-0f763c7bd915","exception":"[object] (Exception(code: 0): A form handle is required on Form tags. Please refer to the docs for more information. at /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Forms/Tags.php:205)
[stacktrace]
#0 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Forms/Tags.php(59): Statamic\\Forms\\Tags->getForm()
#1 [internal function]: Statamic\\Forms\\Tags->create()
#2 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Language/Runtime/NodeProcessor.php(1597): call_user_func(Array)
#3 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Language/Runtime/NodeProcessor.php(750): Statamic\\View\\Antlers\\Language\\Runtime\\NodeProcessor->reduce(Array)
#4 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Language/Runtime/RuntimeParser.php(381): Statamic\\View\\Antlers\\Language\\Runtime\\NodeProcessor->render(Array)
#5 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Language/Runtime/RuntimeParser.php(773): Statamic\\View\\Antlers\\Language\\Runtime\\RuntimeParser->renderText('<div class=\"con...', Array)
#6 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Engine.php(93): Statamic\\View\\Antlers\\Language\\Runtime\\RuntimeParser->parseView('/Users/stephen/...', '<div class=\"con...', Array)
#7 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/View/View.php(208): Statamic\\View\\Antlers\\Engine->get('/Users/stephen/...', Array)
#8 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/View/View.php(191): Illuminate\\View\\View->getContents()
#9 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/View/View.php(160): Illuminate\\View\\View->renderContents()
#10 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Tags/Partial.php(29): Illuminate\\View\\View->render()
#11 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Tags/Partial.php(13): Statamic\\Tags\\Partial->render('components.page...')
#12 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Tags/Tags.php(152): Statamic\\Tags\\Partial->wildcard('components.page...')
#13 [internal function]: Statamic\\Tags\\Tags->__call('components.page...', Array)
#14 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Language/Runtime/NodeProcessor.php(1597): call_user_func(Array)
#15 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Language/Runtime/NodeProcessor.php(750): Statamic\\View\\Antlers\\Language\\Runtime\\NodeProcessor->reduce(Array)
#16 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Language/Runtime/RuntimeParser.php(381): Statamic\\View\\Antlers\\Language\\Runtime\\NodeProcessor->render(Array)
#17 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Language/Runtime/RuntimeParser.php(773): Statamic\\View\\Antlers\\Language\\Runtime\\RuntimeParser->renderText('{{ partial:comp...', Array)
#18 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Engine.php(93): Statamic\\View\\Antlers\\Language\\Runtime\\RuntimeParser->parseView('/Users/stephen/...', '{{ partial:comp...', Array)
#19 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/View/View.php(208): Statamic\\View\\Antlers\\Engine->get('/Users/stephen/...', Array)
#20 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/View/View.php(191): Illuminate\\View\\View->getContents()
#21 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/View/View.php(160): Illuminate\\View\\View->renderContents()
#22 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Tags/Partial.php(29): Illuminate\\View\\View->render()
#23 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Tags/Partial.php(13): Statamic\\Tags\\Partial->render('sets/sections/f...')
#24 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Tags/Tags.php(152): Statamic\\Tags\\Partial->wildcard('index')
#25 [internal function]: Statamic\\Tags\\Tags->__call('index', Array)
#26 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Language/Runtime/NodeProcessor.php(1597): call_user_func(Array)
#27 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Language/Runtime/NodeProcessor.php(2324): Statamic\\View\\Antlers\\Language\\Runtime\\NodeProcessor->reduce(Array)
#28 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Language/Runtime/NodeProcessor.php(750): Statamic\\View\\Antlers\\Language\\Runtime\\NodeProcessor->reduce(Array)
#29 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Language/Runtime/RuntimeParser.php(381): Statamic\\View\\Antlers\\Language\\Runtime\\NodeProcessor->render(Array)
#30 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Language/Runtime/RuntimeParser.php(773): Statamic\\View\\Antlers\\Language\\Runtime\\RuntimeParser->renderText('<section class=...', Array)
#31 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Engine.php(93): Statamic\\View\\Antlers\\Language\\Runtime\\RuntimeParser->parseView('/Users/stephen/...', '<section class=...', Array)
#32 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/View/View.php(208): Statamic\\View\\Antlers\\Engine->get('/Users/stephen/...', Array)
#33 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/View/View.php(191): Illuminate\\View\\View->getContents()
#34 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/View/View.php(160): Illuminate\\View\\View->renderContents()
#35 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Tags/Partial.php(29): Illuminate\\View\\View->render()
#36 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Tags/Partial.php(13): Statamic\\Tags\\Partial->render('sets/page/secti...')
#37 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Tags/Tags.php(152): Statamic\\Tags\\Partial->wildcard('index')
#38 [internal function]: Statamic\\Tags\\Tags->__call('index', Array)
#39 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Language/Runtime/NodeProcessor.php(1597): call_user_func(Array)
#40 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Language/Runtime/NodeProcessor.php(2324): Statamic\\View\\Antlers\\Language\\Runtime\\NodeProcessor->reduce(Array)
#41 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Language/Runtime/NodeProcessor.php(750): Statamic\\View\\Antlers\\Language\\Runtime\\NodeProcessor->reduce(Array)
#42 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Language/Runtime/RuntimeParser.php(381): Statamic\\View\\Antlers\\Language\\Runtime\\NodeProcessor->render(Array)
#43 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Language/Runtime/RuntimeParser.php(773): Statamic\\View\\Antlers\\Language\\Runtime\\RuntimeParser->renderText('<div id=\"pageCo...', Array)
#44 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Engine.php(93): Statamic\\View\\Antlers\\Language\\Runtime\\RuntimeParser->parseView('/Users/stephen/...', '<div id=\"pageCo...', Array)
#45 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/View/View.php(208): Statamic\\View\\Antlers\\Engine->get('/Users/stephen/...', Array)
#46 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/View/View.php(191): Illuminate\\View\\View->getContents()
#47 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/View/View.php(160): Illuminate\\View\\View->renderContents()
#48 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Tags/Partial.php(29): Illuminate\\View\\View->render()
#49 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Tags/Partial.php(13): Statamic\\Tags\\Partial->render('components/page...')
#50 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Tags/Tags.php(152): Statamic\\Tags\\Partial->wildcard('components/page...')
#51 [internal function]: Statamic\\Tags\\Tags->__call('components/page...', Array)
#52 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Language/Runtime/NodeProcessor.php(1597): call_user_func(Array)
#53 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Language/Runtime/NodeProcessor.php(750): Statamic\\View\\Antlers\\Language\\Runtime\\NodeProcessor->reduce(Array)
#54 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Language/Runtime/RuntimeParser.php(381): Statamic\\View\\Antlers\\Language\\Runtime\\NodeProcessor->render(Array)
#55 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Language/Runtime/RuntimeParser.php(773): Statamic\\View\\Antlers\\Language\\Runtime\\RuntimeParser->renderText('{{ partial:comp...', Array)
#56 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/Antlers/Engine.php(93): Statamic\\View\\Antlers\\Language\\Runtime\\RuntimeParser->parseView('/Users/stephen/...', '{{ partial:comp...', Array)
#57 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/View/View.php(208): Statamic\\View\\Antlers\\Engine->get('/Users/stephen/...', Array)
#58 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/View/View.php(191): Illuminate\\View\\View->getContents()
#59 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/View/View.php(160): Illuminate\\View\\View->renderContents()
#60 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/View/View.php(101): Illuminate\\View\\View->render()
#61 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Http/Responses/DataResponse.php(146): Statamic\\View\\View->render()
#62 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Http/Responses/DataResponse.php(42): Statamic\\Http\\Responses\\DataResponse->contents()
#63 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Structures/Page.php(420): Statamic\\Http\\Responses\\DataResponse->toResponse(Object(Illuminate\\Http\\Request))
#64 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Routing/Router.php(900): Statamic\\Structures\\Page->toResponse(Object(Illuminate\\Http\\Request))
#65 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Routing/Router.php(885): Illuminate\\Routing\\Router::toResponse(Object(Illuminate\\Http\\Request), Object(Statamic\\Structures\\Page))
#66 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Routing\\Router->prepareResponse(Object(Illuminate\\Http\\Request), Object(Statamic\\Structures\\Page))
#67 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#68 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/StaticCaching/Middleware/Cache.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\StaticCaching\\Middleware\\Cache->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#70 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Http/Middleware/AuthGuard.php(14): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#71 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\AuthGuard->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#72 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Http/Middleware/AddViewPaths.php(19): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#73 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\AddViewPaths->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#74 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Http/Middleware/Localize.php(38): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#75 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\Localize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#76 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Http/Middleware/HandleToken.php(13): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#77 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\HandleToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#78 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Http/Middleware/StacheLock.php(29): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#79 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\StacheLock->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#80 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#81 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#82 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(88): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#83 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#84 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#85 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#86 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#87 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#88 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#89 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#90 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#91 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(75): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#92 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#93 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#94 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#95 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#96 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#97 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#98 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#99 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#100 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Http/Middleware/StopImpersonating.php(12): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#101 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\StopImpersonating->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#102 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Http/Middleware/DisableFloc.php(17): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#103 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\DisableFloc->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#104 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Http/Middleware/CheckMultisite.php(15): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#105 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CheckMultisite->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#106 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Http/Middleware/CheckComposerJsonScripts.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#107 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\CheckComposerJsonScripts->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#108 /Users/stephen/Sites/Projects/thinkLite/vendor/statamic/cms/src/Http/Middleware/PoweredByHeader.php(18): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#109 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Statamic\\Http\\Middleware\\PoweredByHeader->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#110 /Users/stephen/Sites/Projects/thinkLite/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(59): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#111 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Barryvdh\\Debugbar\\Middleware\\InjectDebugbar->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#112 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#113 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#114 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#115 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#116 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(51): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#117 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#118 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#119 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#120 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(110): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#121 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#122 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#123 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#124 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#125 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#126 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#127 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#128 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#129 /Users/stephen/Sites/Projects/thinkLite/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1172): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#130 /Users/stephen/Sites/Projects/thinkLite/public/index.php(17): Illuminate\\Foundation\\Application->handleRequest(Object(Illuminate\\Http\\Request))
#131 /Users/stephen/.composer/vendor/laravel/valet/server.php(110): require('/Users/stephen/...')
#132 {main}
"}
```


### Environment

```yaml
Environment
Application Name: ThinkLite
Laravel Version: 11.7.0
PHP Version: 8.2.11
Composer Version: 2.6.6
Environment: local
Debug Mode: ENABLED
URL: thinkLite.test
Maintenance Mode: OFF

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: statamic
Database: sqlite
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Statamic
Addons: 2
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.0.2 Solo

Statamic Addons
ndx/statamic-bard-color-picker: 1.3.0
statamic/ssg: 3.0.0
```


### Installation

Fresh statamic/statamic site via CLI

### Additional details

_No response_



Fix (patch):
diff --git a/src/Fields/ConfigField.php b/src/Fields/ConfigField.php
index dd51455f8f3..4f59c87b6a0 100644
--- a/src/Fields/ConfigField.php
+++ b/src/Fields/ConfigField.php
@@ -12,4 +12,9 @@ public function preProcess()
 
         return $this->newInstance()->setValue($value);
     }
+
+    public function mustRemainInConfig(): bool
+    {
+        return $this->get('force_in_config') === true;
+    }
 }
diff --git a/src/Fields/Field.php b/src/Fields/Field.php
index d7685ffae0f..04895d16244 100644
--- a/src/Fields/Field.php
+++ b/src/Fields/Field.php
@@ -477,6 +477,10 @@ public static function commonFieldOptions(): Fields
                 'instructions' => __('statamic::messages.fields_display_instructions'),
                 'type' => 'field_display',
             ],
+            'hide_display' => [
+                'type' => 'toggle',
+                'visibility' => 'hidden',
+            ],
             'handle' => [
                 'display' => __('Handle'),
                 'instructions' => __('statamic::messages.fields_handle_instructions'),
@@ -551,6 +555,6 @@ public static function commonFieldOptions(): Fields
             ],
         ])->map(fn ($field, $handle) => compact('handle', 'field'))->values()->all();
 
-        return new Fields($fields);
+        return new ConfigFields($fields);
     }
 }
diff --git a/src/Fields/FieldTransformer.php b/src/Fields/FieldTransformer.php
index 76a0cc116bc..35360f49657 100644
--- a/src/Fields/FieldTransformer.php
+++ b/src/Fields/FieldTransformer.php
@@ -28,13 +28,12 @@ private static function inlineTabField(array $submitted)
     {
         $fieldtype = FieldtypeRepository::find($submitted['fieldtype'] ?? $submitted['config']['type']);
 
-        $defaultConfig = Field::commonFieldOptions()->all()
-            ->merge($fieldtype->configFields()->all())
-            ->map->defaultValue()->filter();
+        $fields = Field::commonFieldOptions()->all()
+            ->merge($fieldtype->configFields()->all());
 
         $field = collect($submitted['config'])
-            ->reject(function ($value, $key) use ($defaultConfig) {
-                if (in_array($key, ['isNew', 'icon', 'duplicate'])) {
+            ->reject(function ($value, $key) use ($fields) {
+                if (in_array($key, ['isNew', 'icon'])) {
                     return true;
                 }
 
@@ -46,7 +45,15 @@ private static function inlineTabField(array $submitted)
                     return true;
                 }
 
-                return $defaultConfig->has($key) && $defaultConfig->get($key) === $value;
+                if (! $field = $fields->get($key)) {
+                    return false;
+                }
+
+                if ($field->mustRemainInConfig()) {
+                    return false;
+                }
+
+                return $field->defaultValue() === $value;
             })
             ->map(function ($value, $key) {
                 if ($key === 'sets') {
@@ -84,7 +91,6 @@ private static function inlineTabField(array $submitted)
 
                 return $value;
             })
-            ->filter()
             ->sortBy(function ($value, $key) {
                 // Push sets & fields to the end of the config.
                 if ($key === 'sets' || $key === 'fields') {
@@ -97,7 +103,7 @@ private static function inlineTabField(array $submitted)
 
         return array_filter([
             'handle' => $submitted['handle'],
-            'field' => $field,
+            'field' => Arr::removeNullValues($field),
         ]);
     }
 
diff --git a/src/Fieldtypes/Assets/Assets.php b/src/Fieldtypes/Assets/Assets.php
index 4fc47196306..8cda4fbe114 100644
--- a/src/Fieldtypes/Assets/Assets.php
+++ b/src/Fieldtypes/Assets/Assets.php
@@ -56,6 +56,7 @@ protected function configFieldItems(): array
                         'mode' => 'select',
                         'required' => true,
                         'default' => AssetContainer::all()->count() == 1 ? AssetContainer::all()->first()->handle() : null,
+                        'force_in_config' => true,
                     ],
                     'folder' => [
                         'display' => __('Folder'),
diff --git a/src/Forms/Fieldtype.php b/src/Forms/Fieldtype.php
index 384f8d5dac5..be55e589fc2 100644
--- a/src/Forms/Fieldtype.php
+++ b/src/Forms/Fieldtype.php
@@ -31,6 +31,7 @@ protected function configFieldItems(): array
                 'display' => __('Max Items'),
                 'default' => 1,
                 'instructions' => __('statamic::fieldtypes.form.config.max_items'),
+                'force_in_config' => true,
             ],
             'mode' => [
                 'display' => __('UI Mode'),
diff --git a/src/Http/Controllers/CP/Fields/FieldsController.php b/src/Http/Controllers/CP/Fields/FieldsController.php
index 95f454a0f7f..b594742296e 100644
--- a/src/Http/Controllers/CP/Fields/FieldsController.php
+++ b/src/Http/Controllers/CP/Fields/FieldsController.php
@@ -32,9 +32,7 @@ public function edit(Request $request)
 
         $fieldtype = FieldtypeRepository::find($request->type);
 
-        $blueprint = $this
-            ->blueprint($fieldtype->configBlueprint())
-            ->ensureField('hide_display', ['type' => 'toggle', 'visibility' => 'hidden']);
+        $blueprint = $this->blueprint($fieldtype->configBlueprint());
 
         $fields = $blueprint
             ->fields()