Editor select field not passing array bug?

Editor select field not passing array bug?

rrolandasrrolandas Posts: 3Questions: 1Answers: 0
edited March 2016 in Free community support

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
}

Answers

  • allanallan Posts: 63,813Questions: 1Answers: 10,516 Site admin

    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

  • rrolandasrrolandas Posts: 3Questions: 1Answers: 0
    edited March 2016

    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]:

  • rrolandasrrolandas Posts: 3Questions: 1Answers: 0

    i have accidentally tried

    multiple: true

    instead of

    attr: {
    multiple: true
    }

    and now it works as it should. something wrong with option attr

  • allanallan Posts: 63,813Questions: 1Answers: 10,516 Site admin

    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

  • yvesmexyvesmex Posts: 7Questions: 2Answers: 0

    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.

  • allanallan Posts: 63,813Questions: 1Answers: 10,516 Site admin

    If you could give me a link to the page showing the issue I would be happy to take a look.

    Thanks,
    Allan

This discussion has been closed.