We have a custom button that came with the installation of a managed package. We are using this custom button on a page layout to open a new page with a PDF. We want to display an error message when the user clicks on this button and one of the custom fields is blank, prompting users to add a value to the field first.
We can't make the field required as there are other business functionalities that depend on it, so the field must remain non-required.
I understand that validation rules are only applicable when a DML operation occurs, but is there a way to achieve this? Also, since this field is part of a managed package, I can't edit it to make it "execute JavaScript."
Any help would be appreciated. Thanks.