From how I understand the process, in order to use component visibility conditions on screen components, I need to run my flow using Lightning runtime. So currently my Process Automation Settings are set so that "Enable Lightning runtime for flows" is true, but I'm still getting hit with the error:

We can't display the field, because it uses conditional field visibility rules, which aren't supported in Classic runtime. Ask your Salesforce admin to distribute this flow in Lightning runtime instead.

My process is set up so that on a custom action click on the opportunity:

  1. A visualforce page is called that initiates a Screen Flow and populates a variable within the Screen Flow before starting:
<apex:page standardController="Opportunity" lightningStyleSheets="true">
    <flow:interview name="Screen_Flow_Name">
        <apex:param name="recordId" value="{!opportunity.Id}"/>

I included lightningStyleSheets="true" and <apex:includeLightning/> to try to fix the issue but that hasn't caused the error above to go away.

  1. My flow then calls my Apex class that is pulling in variables from the flow to use.

However, I'm still perplexed about why checking that box isn't allowing me to use the custom visibilities rules in my screen flow. Any insight on this and subsequent help would be much appreciated! Thanks!

1 Answer 1


The "Lightning StyleSheets" attribute only adds the look of Lightning, but does not actually contain the full runtime. You need to expose the flow in a Lightning App or Lightning Component. Use lightning:flow to expose a flow in a compatible experience.

  • Ya, it was more of a last-ditch effort to see if it would effect anything, so I wasn't surprised when it wasn't the solution I was looking for. ¯\_(ツ)_/¯ Ok so would that mean moving my visualforce page to a lightning component? Or adding the lightning:flow call to my vfp? Nov 18, 2019 at 23:24
  • Just realized I needed to just follow the link. I'll look into moving it to a lightning component. Thanks for the help, @sfdcfox! Nov 18, 2019 at 23:27

You must log in to answer this question.

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