Loading...

Need to hide & unhide Tab control in Qlistform based on the value from drop down

Need to hide & unhide Tab control in Qlistform based on the value from drop down

Home Forums QuickApps Forum Need to hide & unhide Tab control in Qlistform based on the value from drop down

  • This topic is empty.
Viewing 2 reply threads
  • Author
    Posts
    • #4103
      Anonymous
      Anonymous
      Participant

      Hi 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 🙂

    • #5214
      Anonymous
      Anonymous
      Participant

      Thanks 🙂

    • #5213
      Anonymous
      Anonymous
      Participant

      Hello,

        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).

Viewing 2 reply threads

You must be logged in to reply to this topic.