+ Start a Discussion
YaronYaron 

Override the New Campaign button

Can anyone help with the code for a new button to override the New Campaign button in the campaign tab.
 
I am looking to autopopulate the standard Active field on the Campaign with the value True.
 
Thanks,
YaronYaron

I tried to use the following code:

<script>

var newUrl = '{!URLFOR($Action.Campaign.New , null, null, true)}';

var cancelUrl = '&cancelURL=/';
cancelUrl += '701/o';

newUrl += '&cpn16=1';

newUrl += cancelUrl;

newUrl += '&retURL=$Request.retURL';

newUrl += '&nooverride=1';

window.parent.location.href = newUrl;
</script>

 

But for some reason it brings me to record type selection page two times.

Any Ideas?