function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Custom javascript button with popup question



I am making a javascript button that takes ownership of a case. There should be a question before ownership is taken that asks if you are sure that you want to do this.


"Button Click" -> popup with: Are you sure you want to take ownership (yes) / (no)

-> (Yes) takes ownership

-> (No) don't do anything.


The ownership change bit is no worries but the popup dialog I need help.






Ankit AroraAnkit Arora

You can use javascript confirm box for it, a very simple but powerful explanation is provided here :



Ankit Arora

Blog | Facebook | Blog Page