2

I need to open this page in a new window (salesforce tab.) Have tried to modify the URL but can't seem to get the syntax.

Button or Link URL  /apex/PROD_V2_Audit_Auto_PolicySample?AccId={!Audit__c.Id}
  • 1
    Did you set the Behavior attribute to New Window? – sfdcfox Jan 2 '15 at 21:27
4

Try:

  • Content Source: URL
  • Behavior: Display in New Window
  • URL: {!URLFOR("../apex/PROD_V2_Audit_Auto_PolicySample", "")}?AccId={!Audit__c.Id}

Not sure if it's the most elegant way but this format works for us

  • Thanks for the response. I had the Display Type set to List Button which hid the 'New Window 'option. Had copied mine from a related list . – rickmac Jan 4 '15 at 15:25
3

got it working with the execute javascript option and tweaking the syntax

var newWin = window.open("/apex/PROD_V2_Audit_Auto_PolicySample?AccId={!Audit__c.Id}", "_blank");

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.