1

I need a simple true/false verification popup, so I can confirm when a custom JS button has been pressed. I need the true/false value to determine whether or not to perform the function of the button. Anyone have any ideas?

This is a Custom Button on the standard Contacts object.

  • Lighting, Visualforce, something else? – sfdcfox Mar 9 '17 at 19:48
1

Is this about what you're looking for?

if(confirm('Are you sure you want to do that?')){
    alert('I never doubted you for a second!');
}
else{
    alert('I knew you\'d change your mind.');
}
  • Ever have one of those DUH moments? :) – Wayne Mar 9 '17 at 21:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.