How do i hide a leaf in confd?

I have a below container model in confd

container xyxxyx
   {
      tailf:action create
      {
          tailf:cli-operational-mode;
          tailf:actionpoint stream_create_action_point;
     
         input{
        leaf a {
                  type string;
                  }

         leaf b {
             type string;
             when "../a = 'true'";
         }
      }
      output{

         leaf c
         {
            type string;
         }
      }

     }

Now while executing the command, i want to display

#xyzxyz create ?

It should display leaf a only, Only after the leaf a is entered it should enter leaf b, how can i do it ?

Current behaviior is

#xyzxyz create ?
leaf a
leaf b

So user gets option to have leaf a or leaf b, which i dont want.

Hi,

when "boolean(../a)";

Should do what you want.

Sorry it does not work

You may try following workaround (for CLI). The drawback is that it adds extra hidden container (dummy)
to the data model.

    container box {
        tailf:action set {
            tailf:actionpoint set-point;
            input{
                container dummy {
                    tailf:cli-drop-node-name;
                    tailf:cli-sequence-commands;
                    tailf:cli-compact-syntax;
                    leaf a {
                        type string;
                    }

                    leaf b {
                        type string;
                    }
                }
            }
            output{
                leaf c
                {
                    type string;
                }
            }
        }
    }
micnovak-lnx# box set ?  
Possible completions:
  a  |  <cr>
micnovak-lnx# box set a text ? 
Possible completions:
  b  |  <cr>
micnovak-lnx# box set a text b text2