T
T
TotTip2020-10-20 00:10:28
MODX
TotTip, 2020-10-20 00:10:28

How to submit a form with array fields in MODX EVOLUTION?

Hello!
How to submit a form with array fields in MODX EVOLUTION ?
form fields are displayed like this: (I also tried to write like this: name="filter[color[]]")
when trying to submit the form, the page crashes with the error "htmlspecialchars() expects parameter 1 to be string, array given"
Is it possible as then bypass? Or maybe I'm doing something wrong?
option - to use eFilter will not work, because there are a lot of already filled fields on the site (you will have to re-create and re-fill them)
, so I decided to make my own filter, but I ran into such a problem.
there was an idea next to each field to add a hidden text field, where to enter the marked options using js, but maybe there is a better solution?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question