Button Function Script Variable
I have a button that I use to add a new company for when we have a first time customer. It creates a new record in a new window in my companies table and assigns an ID number.
I want to disable this button when the Customer_ID field in my Invoices table contains text to avoid employees accidentally creating many new blank entries when entering invoices.
How can I modify my existing script to do this?
Attached is my script