Answered
19 Oct 2016
Link to this post
I can do it by JS, share for everyone in needed.
function initCityOnLoad() {
//Set custom label for items in cities lookup dropdown list
var cityControl = findControl("myCityControl");
if (cityControl !== null) {
var items = cityControl.get_cboLookup().get_items();
var itemData = cityControl.get_cboLookup().get_itemData();
for (var i = 1; i < items.get_count() ; i++) {
var item = items.getItem(i);
item.set_text(item.get_text() + " - " + JSON.parse(itemData[i].attributes.data).zipcode);
}
}
//Refresh current label
cityControl.set_value(cityControl.get_value());
}
Last modified on 19 Oct 2016 10:10 by Missing user