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
  • 1
    Did you set the Behavior attribute to New Window?
    – sfdcfox
    Commented Jan 2, 2015 at 21:27

2 Answers 2

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

1
  • 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
    Commented Jan 4, 2015 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");

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .