Fork me on GitHub

Account panel properties as Dropdown list  Bottom

  • I love the account panel properties, but there doesn't really seem to be a way to make them work well as a dropdown list. For example, I want a dropdown list of US States, with the values being the State abbreviation, and the list showing the full name of the state, as in:

    Code

    <select>
      <option value="AL">Alabama</option>
      <option value="AK">Alaska</option>
      ...
    </select>


    I've tried all sorts of things in the list content box, but I can't seem to get anything similar...

    "AL,Alabama;AK,Alaska;...", gives me:

    Code

    <select id="prop_ustate" name="dynadata[_USTATE]">
           
    </select>


    "@@AL,Alabama@@AK,Alaska...", gives me:

    Code

    <select id="prop_ustate" name="dynadata[_USTATE]">
      <option label="" value="AL,Alabama"></option>
      <option label="" value="AK,Alaska;"></option>
      ...
    </select>

    That's the closest I can get...

    Any Ideas?



    edited by: ChainsDD, Mar 09, 2008 - 06:09 PM
  • mmhh can't seem to get the label field to fill as well icon_confused . Any Coredev knows how this should be done ?

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • Same here - can't figure out the syntax.

    It says to precede options with @@, but combobox should be , and ;.

    Anyone done this and can show what the different syntax should be for:

    1. Dropdown list
    2. Combobox
    3. Radio

    Thx!

    NCM
  • I created a dropdown list ok. I think you need to precede the first list item with ;@@ This is the start of my list:
    ;@@|| @@GB||United Kingdom @@US||United States @@AF||Afghanistan @@AL||Albania @@DZ||Algeria @@AS||American Samoa @@AD||Andorra

    --
    David
  • Thanks... I tried @@item1@@item2@@item3 and that worked.

    :)
  • Sorry for bringing this back from the dead, I've been out of town.

    Tried the ";@@||@@AL||Alabama@@AK||Alaska..." method, but I'm still getting a dropdown list "AL||Alabama" and "AK||Alaska" as the choices. I want the user to be see the full name of the state, but it be stored in the database as the abbreviation. Is that possible?
  • Yeah, I am still looking for this feature, too.

This list is based on users active over the last 60 minutes.