# Hiding one case of a choice with tail:hidden is not working

**URL:** <https://dmap-community.ductus.global/t/hiding-one-case-of-a-choice-with-tail-hidden-is-not-working/2528>\
**Category:** YANG\
**Created:** [June 11, 2019, 11:17am UTC](https://dmap-community.ductus.global/t/hiding-one-case-of-a-choice-with-tail-hidden-is-not-working/2528 "2019-06-11T11:17:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajavelu](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@Rajavelu](https://dmap-community.ductus.global/u/Rajavelu)\
**Post date:** [June 11, 2019, 11:17am UTC](https://dmap-community.ductus.global/t/hiding-one-case-of-a-choice-with-tail-hidden-is-not-working/2528/1 "2019-06-11T11:17:33Z")

</div>

I could not able to hide the A3 case alone with the help of tailf:hidden debug;  
Does it need to update any handler to achieve the functionality of hiding A3 leaf case alone.

```
choice src {
    mandatory true;
    case A1{
      leaf A1 {
        type cn-types:cn-filename;
        tailf:info "A1";
        mandatory true;
      }
    }
    case A2 {
      leaf A2{
        type empty;
        tailf:info "A2";
        mandatory false;
      }
    }
    case A3 {
      leaf A3 {
        tailf:hidden debug;
        type cn-types:cn-filename;
        tailf:info "A3";
      }
  }
}

```

Appreciate any help in this regard. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![mvf](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/mvf/32/182_2.png) [@mvf](https://dmap-community.ductus.global/u/mvf)\
**Post date:** [June 14, 2019, 7:22am UTC](https://dmap-community.ductus.global/t/hiding-one-case-of-a-choice-with-tail-hidden-is-not-working/2528/2 "2019-06-14T07:22:51Z")

</div>

What exactly is not working for you? Statement `tailf:hidden debug` should cause that the case `A3` is not accessible in CLI or WebUI, do you see something different?

---

<div class="post-metadata">

**Author:** ![Rajavelu](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@Rajavelu](https://dmap-community.ductus.global/u/Rajavelu)\
**Post date:** [June 14, 2019, 7:36am UTC](https://dmap-community.ductus.global/t/hiding-one-case-of-a-choice-with-tail-hidden-is-not-working/2528/3 "2019-06-14T07:36:00Z")

</div>

Hi Martin,  
Even after adding the `tailf:hidden debug`, i could still see the A3 command in cli.  
This is for choice case alone and for regular Cli commands " tailf:hidden debug" is working fine and i want to understand why this hidden tag is not working for Choices case, Any reference to explore this issue would be great to proceed further.
