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
Alan RuanAlan Ruan 

For an Aura Component embedded in a Lightning Flow, how to detect if it's hiden?

Dear All,

As a screen component in Lightning Flow Screen can be set conditional visible, how to detect from an embedded aura component if it's hidden?

Once you add the Lightning component on to the Screen element, check Set Component Visibility and When to Display Component.
Magulan Duraipandian
Alan RuanAlan Ruan
Magulan, Thanks for the reply. My question was if the Lightning Component embedded in the Flow was set to Conditional Hiden, from the Lightning Component, how to detect if itself is currently hidden? So that the field validation in the lightning component won't be trigger if its hidden.
It is not possible to check whehter it is hidden in Lighting Component. I don't think of any way of achieving it.