ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Populating multi select (front-end)

December 14, 2012 2:00am

Subscribe [1]
  • #1 / Dec 14, 2012 2:00am

    Nutmeg

    111 posts

    I would like to have a multi select field (e.g. topics) which, if the topic isn’t listed, has an option to add a custom topic, which automatically is populated to the list AND sorted in alphabetical order…. (for the next entry or edit)

    How can this be done?

  • #2 / Dec 14, 2012 10:33pm

    Bhashkar Yadav

    727 posts

    Hi Nutmeg,

    I didn’t see any field type for it. May be other have used.

    But you can have a simple solution to achieve it.
    Just create your custom field with the type of “Multi Select”. I think, you will use inbox for entering new topic (if not listed within multi-select), so you can have an “add” button with this input box.
    When user enters topic and clicks “add” button, use ajax to run PHP code which will add this new option with existing options of that field.

    It’s fairly easy but will need the some development knowledge of EE.


    Best Regards,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases