UI Only picklist with manually created entries not displaying values on the page. I have a pageload snippet that loops through the picklistEntries and identifies one that matches a field on the record. I set that as the selectedItem, but nothing shows up on the actual page.
var uionlyPicklist = termModel.getField('UIOnlyPicklist'); for(var index = 0; index < uionlyPicklist .picklistEntries.length; index++) { if(uionlyPicklist .picklistEntries[index].value == newPicklistValue) { uionlyPicklist .selectedIndex = index; } }
newPicklistValue is the value retrieved from another field on the model.