beforeDisplayContacts(contacts, source, owner)

Called before the Choose Your Contacts page renders. The callback may accept array of contacts, the name of the source of the contacts, and the owner contact. Since this callback occurs before the contacts are displayed and the user has the opportunity to filter them, all the contacts of the user’s address book are passed in at this point. These contacts are not guaranteed to have any email addresses. Returning false from this function will immediately cause the contact picker to close, thus suppressing the display of the Choose Your Contacts page.

Try CloudSponge for free in your
testing environment

Get a Free Sandbox Account

Have a questions or prefer a guided tour?
Schedule a consultation with our Founder.