function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ajaxian3Ajaxian3 

Screen pop from JavaScript

Hi,

 

I'm still working my way through the documentation, but what I'd like to do is use navigateToUrl() to pop up a browser window with a SalesForce contact based on name, phone number, address, or whatever information I have available in my Ajax app.  Is that possible?

 

Thanks.

 

CrmzepherCrmzepher

Not entirely sure what you need but this should get you started . . .  Here a new task is created in a popup window of 750x600 px with several fields prepopulated.  It uses the standard object Tasks and a custom object called Inquiries. Take special note to the "hard to find" command that hides the sidebar and tab bar frame from the popup window. It is at the very end of the url string.

 

 

// varibles that will be automatically loaded in the Task page

 

var taskurl = 'https://na6.salesforce.com/00T/e?title=Call&what_id={!Inquiries__c.Id}&00N80000003sTHS='+mobile+'&00N80000003sTHh='+qnote+'&followup=1&tsk5=Call&retURL={!Inquiries__c.Id}&isdtp=mn';

 

// function to control the size of the Task popup

 

task_window = window.open(taskurl,'taskwindow','width=750,height=600,status=no,menubar=no,scrollbars=yes,toolbar=no,location=no,resizeable=no');

 

Let me know how it works out for you.

 

crmzepher

www.5minuteforce.com