+ Start a Discussion

Having issue with overriding button code with java script

I have the code below working in our staging environment.  When we push this to production, the highlighted/bolded section needs to change because the value is different between the two environments.  My question is, is there a way to dynamically grab this piece of code so we don't risk issues when pushing changes in this object up from our staging environment to production at a later date.  It looks like the section in question is the unique id of the object we are trying to open when the user clicks on the button.


Thank you



window.parent.location.href="{! urlFor( $Action.Billing_Event__c.New)}&CF00NT00000018p8L_lkid={!SFDC_Projects__c.Id}&CF00NT00000018p8L={!SFDC_Projects__c.Name}";