CUSTOM BUTTOM ALERT ZOHOCRM

CUSTOM BUTTOM ALERT ZOHOCRM

I'm creating a custom button. the function of this button is to check if email in Leads and Contacts has been filled. As far as I know Alert function can only be used in Validation Rule in ZohoCRM


Is there any work around? Thank you for helping