I need to remove a picklist value from a perticular field on a row while they do an edit in table i.e I don’t want to show “Closed Own” Picklist value on stage field . i tried this from what i have learnt.
var field = arguments[0];
value = skuid.utils.decodeHTML(arguments[1]);
oppModel = skuid.model.getModel(‘OpportunityList’);
if (field.mode == ‘edit’) {
var picklistEntries = field.metadata.picklistEntries;
console.log(picklistEntries);
for( var x in picklistEntries){
console.log(picklistEntries[x].value);
if(picklistEntries[x].value === ‘Closed Own’ ){
console.log(picklistEntries.length);
picklistEntries.splice(x , 1);
console.log(picklistEntries.length);
}
}
}
skuid.ui.fieldRenderers[field.metadata.displaytype]field.mode;
*********
i was able to remove it form picklistEntries , but i am not sure how to update the field with these new List.
Just for Info:
I have a row Action Button with multi action button which updates the Stage to “Closed Own” and at same time Shows a pop-up to enter values in those fields. I don’t want users to update stage value to “Closed Own” directly from stage field.
thanks in advance…
Question
Need to Remove pickList Value from a perticular picklist Field
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.