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
V K AV K A 

Closes the embedded browser containing the Visualforce page and returns the user to the originating tab or record.

Hello.

I have VF Page in Salesforce Classic in Andorid. I need to close that VF Page after saving the Records and go to Previous Record.

am using the Java Script functionalties provied in Salesforce Help Page to achive this, but its not working and give me the Error of Web page at Mobileforce:///Close migh be temprorily down or it may have moved Permanently to a new web Address.

Here is the link : https://www.salesforce.com/us/developer/docs/pages/Content/pages_mobile_javascript_library.htm 

any help is appreciaed.

Thanks.
Bryn JonesBryn Jones
On the button that takes you to the VF page you need to add &retURL={!Contact.ID} or where the button is. So if the button is on Accouts it would be &retURL={!Account.Id}

Hope this makes sense and helps.
Please mark as answer if this worked.
Bryn
V K AV K A
Hi Brynjones,

Am talking about VF page in Mobile(Salesforce Classic App) not a normal VF Page that we access via Browser.

Thanks,
Vinoth


Bryn JonesBryn Jones
V K A,

According to the link you provided you need to use:  mobileforce.device.close()

Could you post you coding if this doens't work?

Bryn
pls mark as answerif this worked.