Skip to:
Content
Pages
Categories
Search
Top
Bottom

Multi select field no array?


  • ahalle
    Participant

    @ahalle

    I have a big problem with multi select filds.
    If I edit the profile with the administrator is all ok, because the select field was an array.
    <select id="field_11[]" name="field_11[]" multiple="multiple" aria-required="true">

    But if an user need to change the field, there save only the last attribute, because there isn’t an array.
    <select name="field_11" id="field_11" multiple="multiple">

    Can me everythink help make an array at his field?

Viewing 3 replies - 1 through 3 (of 3 total)

  • danbp
    Moderator

    @danbp

    hi @ahalle,

    I have a big problem with multi select fields.

    This is unclear ! What are you trying to do exactly ?

    MOD EDIT: Moved the topic from Requests & Feedback to Creating & extending category.


    ahalle
    Participant

    @ahalle

    I want the users to edit your own profile.
    If the user is currently trying to save his entry in multiple select box, only in the last entry is saved, because the values ​​are not passed in an array. Exactly the same problem at the register page.

    However, when I try from the backend multiple typed select and save the changes to take effect. Since this there passed as an array.

    Now the question is how do I get it out that the multi-select are passed as array fields in the frontend?


    danbp
    Moderator

    @danbp

    If you want your user to set their profile, you must activate the xprofile component first.

    You must also have a component page called by default Members
    And a page for activation and another for registering.

    Then you must create some profile fields
    Dashboard > users > profile fields

    At this stage, which is the default process, you have nothing to know about array’s or code. All this is done within in a user friendly interface.

    Sorry to detail such things – and probably knowed & done by you, but topics are also read by many other people.

    You have an issue with multilines text areas ? OK
    – do you use a custom theme or a third party theme ?
    – are you on a local install ?
    – have you other js malfunction elsewhere on your site ?
    – have you tested with another browser ?

    Anyway, i guess you have to debug by deactivate all plugins but BP on the 2014 theme and retest the text area.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multi select field no array?’ is closed to new replies.
Skip to toolbar