You need to sign in to do that
Don't have an account?
APK
s-control within a custom button that creates a new opportunity with a specific record type
All:
I am sure that someone has already done this within their instance, but if you could volunteer your expertise I would appreciate it. Here's what we are trying to do:
We have created a custom button associated with a specific opportunity record type. We would like this button to create a new opportunity that copies the account owner and opportunity over to the new opportunity, but assigns a different record type. Ideally, the detail edit screen for the new opportunity would automatically pop. I am trying to use an s-control to do this, but am currently stuck.
Ideas or examples would be greatly appreciated,
APK
In my example, I am passing other parameters just in case the user decides to cancel the opportunity creation after they already get to the opportunity edit screen.
Thanks Greg! That helped a ton!
I now need to control for the internal scroll bar and tabs. I've been doing some research on Iframes, and what other folks have done to try to control for this (as well as what SFDC has published on the matter), and it looks like most people have only found limited success.
Am I just spinning my wheels?
Because the sControl is loaded into an iframe on the salesforce.com page you can call out that specific iframe and resize it using a pretty simply piece of code. This function is below:
Code:
Simply place this code within a script tag in your sControl and then call the function as the last line in any JavaScript you execute on the page.
Hope this helps too,
-greg