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
Syed Subhan 9Syed Subhan 9 

I am implementing lightning:tabset and lightning:tab to display tabs in a lightning component. I have 2 tabs inside the tabset. I am trying to display error when user tries to fill tab 2 first by leaving tab 1 fields empty.

I am implementing lightning:tabset and lightning:tab to display tabs in a lightning component. I have 2 tabs inside the tabset. I am trying to display error when user tries to fill tab 2 first by leaving tab 1 fields empty. Does anyone have any insight into how
 to achieve this functionality?
Dinesh_Kumar_NagarathinamDinesh_Kumar_Nagarathinam
Create one boolean attribute with default value as false. Once the tab1 fields are filled, then do validation if want and make the attribute as true. Based on this boolean value control the tab2.