Forum Post: RE: Filter by related records only when attaching a record

  • Thread starter Thread starter Gian Torralba
  • Start date Start date
Status
Not open for further replies.
G

Gian Torralba

Guest
Hello, You can use the rbf_setLookupFilter() method. Here is also a sample script on how you can apply the setLookupFilter method on your code: script /*run this function on click event of the account lookup field*/ function setContactFilter(){ var accountId = rbf_getFieldValue("RXXXX") /*integration name of the account lookup field*/ rbf_setLookupFilter("RXXXX_contact_relationship_name", "RXXX_name_of_account_relationship_on_contact_object", parseInt(accountId)); } /script Hope this helps. Thank you, Gian

Continue reading...
 
Status
Not open for further replies.
Back
Top