I have a custom Opportunity list button. I have placed this button on the Opportunity related list on the contract record.
I am returning this error when I click the button:
I don't see anything wrong with this snippet. Can you advise?