I have three Tabs in Tab Group. This Tab Group is displaying right after user login in portal. Tab1 is default. I would like to active Tab3 based on When condition. On Tab3 configuration, I have put a when condition in "Active When". Once login in user portal, the screen is always activating Tab 1 instead of Tab 3. I am using Pega 7.2.1..
I have tried to create similar use case in-house (Pega 7.2.1) and it is working as expected.
There is a section created with 3 tabs. I have used a Data transform to set the value of Property Prop1 to "Sample". In the ActiveWhen condition for Tab 3, I am adding a when condition that checks if the value of Prop1 is "Sample" or not. Based on this, the Tab 3 is getting active when I run the Case. If I do not add the Data transform in the Flow action, then Tab 1 becomes active.
Could you please share screenshots of the Tab configuration?
Instead of using the true==true condition, use a data transform, set a property value and call it before the section loads in the flow action pre-actions. And set the Active when condition on your 3rd tab based on the property you have set in the data transform.
Hope you are using the Active when condition on Section or dynamic layout as it does not work on the harness level and it is being removed from 7.1.7 version of pega from harness.