Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SelectItem descriptions containing '&' chanracter get truncated when selected

    Hi,

    We have an issue that if a selectitem's description contains '&' character, it will get truncated after '&' when selected.

    We are using SmartClient_v82p_2013-03-04_PowerEdition on IE8 and IE9, and this issue can also be reproduced on SmartClient_v83p_2013-04-03_PowerEdition.

    Please note this issue only happens on IE. On Firefox it works fine.

    Please try the following code to reproduce.
    Steps:
    1. Click the picker to show the select list, the description shows completely in the list.
    2. Select any entry containing '&'. The description gets truncated after '&'.

    Thanks!

    Code:
    isc.DynamicForm.create({
        ID: "exampleForm",
        width: 250,
        fields: [
            {name: "username",
             title: "Username",
             type: "select",
             valueMap: {"A":"A&pple","B":"Black&berry"}
            }
        ]
    });

    #2
    SelectItem display values are interpreted as HTML. Use & to avoid the "&" character being treated as an escape sequence (which is causing the rest of the characters to disappear).

    Comment


      #3
      Thanks for your quick response! It resolves our issue.

      Comment

      Working...
      X