Editor select field not passing array bug?
Editor select field not passing array bug?
rrolandas
Posts: 3Questions: 1Answers: 0
I have added select field with attr multiple,
but after submit it only passes first selected value instead of array?
is this a bug?
{
label: "Violations",
name: "violations",
attr: {
multiple: true
}
This discussion has been closed.
Answers
Can you link to the page so I can take a look please? I'm not sure what would cause the issue you are seeing.
Allan
hi, i have created a sample page: link removed
with a custom field "select".
no matter how many options are selected in select field, it always passes data with only first option value in "select" field:
action:create
data[0][first_name]:
data[0][last_name]:
data[0][select]:1
data[0][position]:
data[0][office]:
data[0][salary]:
i have accidentally tried
multiple: true
instead of
attr: {
multiple: true
}
and now it works as it should. something wrong with option attr
Interesting - the
multiple
option should work nicely in Editor 1.5.1 and newer (1.5.5 is the current release). However, good to hear you have it working now.Allan
No working for me. Neither the attr: {
multiple: true
} or the multiple: true will render 2 or 3 values. I only get one the first value racorded in the data base. So what is the solution?
Plse your help is required.
If you could give me a link to the page showing the issue I would be happy to take a look.
Thanks,
Allan