You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This is my fieldset for Form Request
These are my forms
These are what happens when you set the max_items in the original form_fieldtype
if its more than 1 then it shows in the yaml, if its 1 then it doesnt display
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.
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.
This is my fieldset for Form Request
These are my forms
These are what happens when you set the max_items in the original form_fieldtype
if its more than 1 then it shows in the yaml, if its 1 then it doesnt display
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
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
The text was updated successfully, but these errors were encountered: