How can I filter the rows that are returned to an autocomplete property field in my custom component?
I have this:
{<br> id: "sid",<br> type : 'autocomplete',<br> sobject : 'Signature_Type__c',<br> fieldsToReturn : ['Name','Title__c', 'Active__c','Id'],<br> fieldsToSearch : ['Name', 'Title__c'],<br> displayTemplate : '{{Name}} ({{Title__c}})',<br> valueTemplates : {<br> 'sid' : '{{Id}}',<br> 'name' : '{{Name}}'<br> },<br> order : 'Name',<br> label : 'Signature Type (autocomplete)',<br> required : true,<br> helptext : 'Begin typing the Name or Title to select the signature type you wish to display with this component.',<br> onChange : function() {<br> component.refresh();<br> }<br>}
I want to only return rows where the Active__c boolean field is true.
How do I do that?