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

Form Submissions doesn't allow usage of array in form fields #171

Open
jonathandejong1989 opened this issue Mar 8, 2023 · 1 comment
Open

Comments

@jonathandejong1989
Copy link

I'm trying to use arrays in a new field (named message[results][year]) but when I open this submission I getting a TypeError because the convertToUtf8 function is expecting a string instead of an array.

craft\helpers\StringHelper::convertToUtf8(): Argument #1 ($str) must be of type string, stdClass given, called in /vendor/hybridinteractive/craft-contact-form-extensions/src/services/ContactFormExtensionsService.php on line 124

Would it be possible to get support for adding arrays in the form as well? This would help me tremendously with this dynamic form I'm building.

@DynamiteGoesBoom
Copy link
Contributor

This is not currently supported but I'll see what @rosskenney and @michtio think. PRs are always welcome too!

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

No branches or pull requests

3 participants