I am facing one issue that is for customer data type field i need to restrict to select one type of account records (for account entity 2 types of accounts are there ).
Has the issue been solved? Have there been any updates? Please feel free to ask me if you have any questions! If it has been resolved, can you mark the response as an answer?
You can use JS to restrict the Customer Look up field from displaying contact or account records.
function onload(executionContext) { //get customer field control var customerId= executionContext.getFormContext().getControl("customerid"); function filterCustomerLookup() { //Set the Customer field to display only account records.To display the contact record, simply replace account with contact. customerId.setEntityTypes(["account"]); } customerId.addPreSearch(filterCustomerLookup); }
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.