1
0
-1

When I have the following Custom Block and I drop it into a form, the block splits on the commas that I have in the displayed values, but it is a business requirement for the display values to have these commas in the strings as part of the selection (i.e. "Virgin Islands, U.S." is an option). What should I do? 

Note: If I save this exact XML, when I return to look at it, that comma in VIRGIN ISLANDS, U.S. is taken out and there are now two display values VIRGIN ISLANDS|U.S.

"

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<module name="Widget-Custom-CNR-CountryList" category="CNR" description="CNR Country List with 2 letter Counrty Codes" editable="true" embeddable="true" extends="Field-DropDownList" label="CNR Country List Dropdown">
<property name="binding.name" accesslevel="protected" value="Country"/>
<property name="values" accesslevel="protected" value="AF|ZD|AX|AL|DZ|AS|AD|AO|AI|AG|AR|AM|AW|AH|AU|AT|AZ|BS|BH|FQ|BD|BB|DI|BY|BE|BZ|BJ|BM|BT|BO|BA|BW|BI|BR|OB|BV|WB|AB|IO|BN|BG|BF|BR|BU|KH|CM|CA|PZ|CV|KY|CF|TD|CJ|CL|CN|CX|IP|CC|CO|KM|CG|CD|CK|XR|CR|HR|CU|XC|CY|CZ|KP|DK|DJ|DM|DO|EC|EG|SV|EN|GQ|ER|EE|ET|FO|FK|FJ|FI|FR|PF|GF|GA|GM|GE|DD|DE|GH|GI|GZ|GR|GL|GD|GP|GU|GT|XG|GN|GW|GY|HT|HN|HK|HQ|HU|IS|IN|ID|IR|IQ|IE|IM|IL|IT|CI|JM|JN|JP|JE|JQ|JO|JU|KZ|KE|KQ|KI|KR|KW|KG|LA|LV|LB|LS|LR|LY|LI|LT|LU|MO|MK|MG|MW|MY|MV|ML|MT|MH|MR|MU|YT|MX|FM|QM|ME|MD|MC|MN|CS|MS|MA|MZ|MM|NA|MQ|NR|BQ|NP|NL|AN|NC|NN|NH|NZ|NI|NE|NG|NU|NK|MP|NO|OM|OF|OA|OC|OE|OZ|PK|PW|LQ|PA|PG|PI|PY|YM|PE|PH|PN|PL|PT|PP|PR|QA|RE|ZA|RO|RU|RW|SM|EL|ST|SA|XK|SN|SC|SL|SG|SK|LO|SI|SB|SO|ZS|GS|NB|ES|SS|LK|SH|KN|LC|PM|VC|SD|SR|SJ|SZ|SE|CH|SY|TW|TJ|TZ|TH|TL|TG|TK|TO|TT|TE|TS|TN|TR|TM|TC|TV|UG|UA|AE|GB|UK|US|UO|UV|UY|UZ|VU|VA|VE|VN|VG|VI|WR|WL|WI|EH|WS|YS|YE|YU|ZM|ZW|"/>
<property name="displayvalues" accesslevel="protected" value="AFGHANISTAN|AFRICAN DEVELOPMENT BANK|AFRICAN REGIONAL ORG.|ALBANIA|ALGERIA|AMERICAN SAMOA|ANDORRA|ANGOLA|ANGUILLA|ANTIGUA AND BARBUDA|ARGENTINA|ARMENIA|ARUBA|ASHMORE &amp;amp;amp; CARTIER ISLANDS|AUSTRALIA|AUSTRIA|AZERBAIJAN|BAHAMAS|BAHRAIN|BAKER ISLAND|BANGLADESH|BARBADOS|BASSAS DA INDIA|BELARUS|BELGIUM|BELIZE|BENIN|BERMUDA|BHUTAN|BOLIVIA|BOSNIA-HERZEGOVIA|BOTSWANA|BOUVET ISLAND|BRAZIL|BRITISH OCEANIA|BRITISH VIRGIN ISLANDS|BRITISH WEST AFRICA|BRITISH WEST INDIES|BRT INDIAN OCEAN TERR|BRUNEI|BULGARIA|BURKINA FASO|BURMA|BURUNDI|CAMBODIA|CAMEROON|CANADA|CANAL ZONE|CAPE VERDE|CAYMAN ISLANDS|CENTRAL AFRICAN REPUBLIC|CHAD|CHANNEL ISLANDS|CHILE|CHINA|CHRISTMAS IS-INDIAN OCEAN|CLIPPERTON ISLAND|COCOS ISLAND|COLOMBIA|COMORO ISLANDS|CONGO|CONGO THE DEMOCRATIC REP|COOK ISLANDS|CORAL SEA ISLAND TERR|COSTA RICA|CROATIA|CUBA|CURACAO|CYPRUS|CZECH REPUBLIC|DEM PEOPLES REP KOREA NORTH|DENMARK|DJIBOUTI|DOMINICA|DOMINICAN REPUBLIC|ECUADOR|EGYPT|EL SALVADOR|ENGLAND|EQUATORIAL GUINEA|ERITREA|ESTONIA|ETHIOPIA|FAEROE ISLANDS|FALKLAND ISLANDS|FIJI|FINLAND|FRANCE|FRENCH POLYNESIA|FRENCH WEST INDIES AND GUIANA|GABON|GAMBIA|GEORGIA|GERMAN DEMOCRATIC REPUBLIC|GERMANY|GHANA|GIBRALTAR|GILBERT ELLICE ISLANDS|GREECE|GREENLAND|GRENADA|GUADELOUPE|GUAM|GUATEMALA|GUERNSEY|GUINEA|GUINEA-BISSAU|GUYANA|COOPERATIVE REPUBLIC|HAITI|HONDURAS|HONG KONG|HOWLAND ISLAND|HUNGARY|ICELAND|INDIA|INDONESIA|IRAN|IRAQ|IRELAND|ISLE OF MAN|ISRAEL|ITALY|IVORY COAST|JAMAICA|JAN MAYEN|JAPAN|JERSEY ISLAND|JOHNSTON ATOLL|JORDAN|JUAN DE NOVA ISLAND|KAZAKHSTAN|KENYA|KINGMAN REEF|KIRIBATI|KOREA|KUWAIT|KYRGZYSTAN|LAOS|LATVIA|LEBANON|LESOTHO|LIBERIA|LIBYA|LIECHTENSTEIN|LITHUANIA|LIXEMBOURG|MACAO|MACEDONIA|MADAGASCAR|MALAWI|MALAYSIA|MALDIVES|MALI|MALTA|INCLUDING GOZO|MARSHALL ISLANDS|MAURITANIA|MAURITIUS|MAYOTTE|MEXICO|MICRONESIA|FEDERATED STATES|MIDWAY ISLANDS|MIQUELON|MOLDOVA|MONACO|MONGOLIA|MONTENEGRO|MONTSERRAT|MOROCCO|MOZAMBIQUE|MYANMAR|NAMIBIA|NARTINIQUE|NAURU|NAVASSA ISLAND|NEPAL|NETHERLAND|NETHERLANDS ANTILLES|NEW CALEDONIA|NEW GUINEA|NEW HEBRIDES|NEW ZEALAND|NICARAGUA|NIGER|NIGERIA|NIUE|NORTHERN IRELAND|NORTHERN MARIANA ISLANDS|NORWAY|OMAN|OTHER AFRICA|OTHER ASIA|OTHER COUNTRIES|OTHER EUROPE|OTHER LATIN AMERICA &amp;amp;amp; CARIBBEAN.|PAKISTAN|PALAU|PALMYRA ATOLL|PANAMA|PAPUA NEW GUINEA|PARACEL ISLAND|PARAGUAY|PEOPLE'S DEM REP YEMEN|PERU|PHILIPPINES|PITCAIRN ISLAND|POLAND|PORTUGAL|PRINCIPE|PUERTO RICO|QATAR|REONION|REPUBLIC OF SOUTH AFRICA|ROMANIA|RUSSIA|RWANDA|SAN MARINO|SAN SALVADOR|SAO TOME AND RPINCIPE|SAUDI ARABIA|SCOTLAND|SENEGAL|SEYCHELLES|SIERRA LEONE|SINGAPORE|SLOVAK REPUBLIC|SLOVAK SOCIALIST REPUBLIC|SLOVENIA|SOLOMON ISLANDS|SOMALIA|SOUTH AFRICA|SOUTH GEORGIA|SOUTH-WEST AFRICA (NAMIBIA)|SPAIN|SPANISH SAHARA|SRI LANKA|ST. HELENA|ST. KITTS|NEVIS (ANGUILLA)|ST. LUCIA|ST. PIERRE &amp;amp;amp; MIQUELON|ST. VINCENT|SUDAN|SURINAME|SVALBARD|SWAZILAND|SWEDEN|SWITZERLAND|SYRIA|TAIWAN|TAJIKISTAN|TANZANIA|THAILAND|TIMOR-LESTE|TOGO|TOKELAU ISLANDS|TONGA|TRINIDAD &amp;amp;amp; TOBAGO|TROMELIN ISLAND|TRUST TERR PACIFIC ISLANDS|TUNISIA|TURKEY|TURKMENISTAN|TURKS &amp;amp;amp; CAICOS ISLANDS|TUVALU|UGANDA|UKRAINE|UNITED ARAB EMIRATES|UNITED KINGDOM|UNITED KINGDOM (PENSION PLAN)|UNITED STATES|UNIVERSAL POSTAL UNION|UPPER VOLTA|URUGUAY|UZBEKISTAN|VANUATU|VATICAN CITY|VENEZUELA|VIETNAM|VIRGIN ISLANDS|VIRGIN ISLANDS, U.S.|WAKE ISLAND|WALES|WEST INDIES|WESTERN SAHARA|WESTERN SAMOA|YEMEN (ADEN)|YEMEN (SANA)|YUGOSLAVIA|ZAMBIA|ZIMBABWE|"/>
</module>

"

 

    CommentAdd your comment...

    3 answers

    1.  
      1
      0
      -1

      It seems like there was an issue with the saving of the custom block. No issue here

        CommentAdd your comment...
      1.  
        1
        0
        -1

        But it did not update the XML when I changed the default separator, therefore it only helped on the block I manually created. However, when I dragged the custom block into a form the default separator was back to a comma. Is there anyway to update the xml to change the default separator?

          CommentAdd your comment...
        1.  
          1
          0
          -1

          Hi David, 

          On the drop down you can change the default seperator to be something other than a comma, an * for example. You can access this by going to the data tab on the drop down and clicking the bulk editor for the display values and then change the default seperator. 

            CommentAdd your comment...