March 2020
Beginner to intermediate
426 pages
13h 11m
English
This event is available for lookup controls and can be used to filter them. We can only associate a JavaScript function with this event using code; it is not available under field events. We can get our Filter condition, add a customer filter using the addCustomFilter method, and then call addPreSearch, as follows:
formContext.getControl("lookupfieldname").addPreSearch(FilterLookupFilter);function FilterLookupFilter(){var filter= "<filter type='and'><condition attribute='emailaddress1' operator='like' value='mpal@himbap.com'/></filter>"; formContext.getControl("lookupfieldname").addCustomFilter(filter);}
Read now
Unlock full access