- This topic is empty.
- AuthorPosts
-
- 06/16/2012 at 1:21 am #4103
AnonymousParticipantHi Friends
I have a requirment , where i have to hide and unHide Tab based on the value from the drop down.
for example , i have three tab in the Qform Tab1,Tab2,Tab3
Column name category drop down field : 1. personal , 2. official, 3. other
If i choose the value Official from the drop down , I want to see only Tab1 , rest of the Tab2 & Tab3 will be hidden.
Awaiting for the replay at the earliest ๐
- 06/16/2012 at 1:21 am #5214
AnonymousParticipantThanks ๐
- 06/16/2012 at 4:47 am #5213
AnonymousParticipantHello,
You can achieve this using Form Component Behavior.
I have defined 2 tabs
<FormLayout Type="TabLayout">
<Container Type="Tab" ID="Tab1" Label="Tab1" />
<Container Type="Tab" ID="Tab2" Label="Tab2" />
</FormLayout>
and placed some fields on both tabs. On Tab1 I have a lookup field called CountryID2 and I set the Form Component Behavior condition to hide Tab2 when the value selected is US
<FormComponentBehavior>
<Component Type="Container" ID="Tab2">
<HideWhen>
<Eq>
<FieldRef Name="CountryID2" />
<Value Type="Lookup">US</Value>
</Eq>
</HideWhen>
</Component>
</FormComponentBehavior>
This will hide the content of the tab2 when the value selected is equal to US.
Please don't forget to check the Auto Postback property of the CountryID2 field.
For more details please consult our documentation related to Form Component Behavior.(qListForm->Form component Behavior Section).
-
- AuthorPosts
You must be logged in to reply to this topic.