First,let's have a look at Salesforce API about adderror: addError(errorMsg)Marks a record with a custom error message and prevents any DML operation from occurring. Notice that the first word is 'Marks', means this function will not stop any script. I wrote a trigger for test this. triggertestAd...
>>
Before creating a custom button or link, determine what action you want to occur when a user clicks it. Consider aVisualforcepage if you want the button or link to launch a custom page or other code(salesforce help). We can execute Javascript or Apex Class within a visualforce page action.But we wil...
>>