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
Tim CombridgeTim Combridge 

How to open Screen Flow in Mobile view using Javascript

Hi,

I've built a basic Visualforce page that is supposed to act as an App Launcher from the Salesforce App on iPhone.
Currently, when somene taps the image, it opens the Flow but it opens in Desktop Classic view. Image at bottom of what it opens to. 

Javascript that opens the Flow:
 
function calc_open() {
            window.open('/flow/Fluid_Calc', "_blank");
        }

User-added image
 
Best Answer chosen by Tim Combridge
Raj VakatiRaj Vakati
Use sforce one   navigateToURL(​url​[, isredirect]) function 

https://developer.salesforce.com/docs/atlas.en-us.salesforce1.meta/salesforce1/salesforce1_dev_jsapi_sforce_one.htm
 

All Answers

Raj VakatiRaj Vakati
Use sforce one   navigateToURL(​url​[, isredirect]) function 

https://developer.salesforce.com/docs/atlas.en-us.salesforce1.meta/salesforce1/salesforce1_dev_jsapi_sforce_one.htm
 
This was selected as the best answer
Tim CombridgeTim Combridge
Thansk Raj! This is exactly what I needed! That, and I enabled Lightning Runtime in Process Automation Settings, and it looks BEAUTIFUL inside Salesforce app.

Cheers for that!