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

Field limit checkbox fields #1722

Closed
SarahOorts opened this issue Feb 12, 2024 · 2 comments
Closed

Field limit checkbox fields #1722

SarahOorts opened this issue Feb 12, 2024 · 2 comments

Comments

@SarahOorts
Copy link

Describe the bug

When adding a checkbox list to a form, we noticed that if a user checks several items the limit is hit for the database column.
They get the error that they have hit 255 characters.

Is it possible to add a lightswitch to change the database field type to Text instead of VARCHAR as on the plain text field?

Steps to reproduce

  1. Create a form and add a checklist
  2. Test the form by checking several items on the checklist

Form settings

  • Multi-page form: No
  • Submission Method: Page Reload
  • Client-side Validation: No
  • Custom Form Templates: No

Craft CMS version

4.5.11.1

Plugin version

2.0.43

Multi-site?

No

Additional context

No response

@engram-design
Copy link
Member

It's a known issue, and fixed for Craft 5 with some content table change overhauls.

For Craft 4 and Formie 2.x, please add the enableLargeFieldStorage = true configuration setting, which will force Checkboxes (and many other fields) to use TEXT columns.

@SarahOorts
Copy link
Author

Wonderful, thanks for the info!

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