I have a front end form with multiple checkboxes. Is it possible to convert the checkbox values from an array to a string before it's submitted to the database?
I want to save the checkbox values into a PlainText Craft field in the database.
If I try to submit the front end form checkbox values into a PlainText field currently, I get the error: trim() expects parameter 1 to be string, array given
It looks like perhaps using the join
or merge
filter may accomplish this but I'm not sure.