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

Opening two URLs from one Button

Hi everyone,

I currently have a button on a case that will change a handful of fields so that the user can "Take" the case.  I have a separate button that the user can run which will change their status to "In Office" (a custom field on the user record).  I would like to do both of these when they click a single button, any suggestions?

Currently I am using URLs

2){! User.Id}/e?retURL=%2F{!User.Id}&00N40000001VsGs="In%20Office"&save=1

Any suggestions would be appreciated.


I think you cannot display both the user and the case page simultaenously on click on one button!
You can probably update the user field & case field using AJAX tool kit in the S-Control that you are attaching to the button and then display the case detail page.
You certainly can. The trick is to use the retURL to achive this. For example:

Basically, I encoded the second retURL for the first, so that the case will be updated, the user will be modified, and finally the user will re-appear on the case detail.