Hi,
I tried the below example online. (http://www.smartclient.com/index.jsp#selectItem)
I added two new options
“ABC” : “DEF”
“DEF” : “GHI”
and added an onchange event.
When I select option DEF, I get an alert “ABC”. When I select GHI, I do not get an alert. This indicates that both “GHI” and “DEF” have the same value which is “ABC”. You can confirm this by selecting some other option other that the said two and then select GHI. We get the alert “ABC”.
This appears to be a bug. Please let me know how to go about fixing this.
We use version I somorphic version 5.6.
isc.DynamicForm.create({
width: 500,
fields: [{
name: “shipTo”, title: “Ship to”, type: “select”,change:“alert(value)”,
hint: “<nobr>Overnight shipping available for countries in bold</nobr>”,
valueMap: {
“US” : “<b>United States</b>”,
“CH” : “China”,
“JA” : “<b>Japan</b>”,
“IN” : “India”,
“GM” : “Germany”,
“FR” : “France”,
“IT” : “Italy”,
“RS” : “Russia”,
“BR” : “<b>Brazil</b>”,
“CA” : “Canada”,
“MX” : “Mexico”,
“SP” : “Spain”,
“ABC” : “DEF”,
“DEF” : “GHI”
},
imageURLPrefix:“flags/16/”,
imageURLSuffix:“.png”,
valueIcons: {
“US” : “US”,
“CH” : “CH”,
“JA” : “JA”,
“IN” : “IN”,
“GM” : “GM”,
“FR” : “FR”,
“IT” : “IT”,
“RS” : “RS”,
“BR” : “BR”,
“CA” : “CA”,
“MX” : “MX”,
“SP” : “SP”
}
}]
});