3

I want to create a custom button on a custom object which when pressed executes a script on an external site without redirecting to that page.

Currently when the button is pressed the only behavior options are :

  1. Display in new window
  2. Display in existing window with sidebar
  3. Display in existing window without sidebar
  4. Display in existing window without sidebar or header
  5. Execute JavaScript

Screenshot

  • 1
    Have you tried Execute Javascript as Behavior? – Sergej Utko May 28 '14 at 10:37
  • I can't see why some magic with the Execute JavaScript option won't assist you in your requirement? – Simon Lawrence May 28 '14 at 10:43
  • Could you please explain how to use JavaScript to accomplish the same? – Sanjay Thomas May 28 '14 at 11:16
1

You can execute javascript (option 5); call the other page via ajax; and execute your procedure based on the result of your ajax request.

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.