Skip to main content
marcinkacz
Level 3
Feb 19, 2019 1:11 PM UTC
Question

Dynamic Input Form / visibleIf=

Hi All,

Recipient's input form is made up of iconbox containers. I have added one more container based on recipient schema extension, but I want to display it only in one specific recipients folder. How can achieve that? visibleIf="[/tmp/@folderId]==123456" doesn't work.

   

Thank you,

Marcin

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

Venu_Reddy
Level 6
Feb 19, 2019 2:12 PM UTC

Hello Marcin,

Did you  use the container type as VisibleGroup? and the syntax as follows:

<container  type="visibleGroup" visibleIf="[/tmp/@folderId]=12345">

You can also check the below link almost belong to same category:

Input forms - visibleIf

Regards,

Venu

Translate
marcinkacz
Level 3
Feb 19, 2019 2:35 PM UTC

Thanks for prompt reply, Venu. I have type="visibleGroup" already:

<container colcount="2" img="cus:logo16x16.png" label="myLabel" name="myName" type="visibleGroup" visibleIf="[/tmp/@folderId]==12345">

Unfortunately my container doesn't appear regardless the folder id. I changed to "!=" for testing, but the result is the same - I can't see my container. Maybe I have to add some code in order to load/reload folder id?

Translate
Venu_Reddy
Level 6
Feb 19, 2019 3:02 PM UTC

Looks like may be you missed some code

Can you try this out:

<container colspan="2" type="visibleGroup" visibleIf="[/tmp/@folderId]=0">

      <input createMode="none" label="Folder" writeAccess="true" xpath="folder">

        <sysFilter>

          <condition expr="@isView=0 and @model='Recipient'"/>

        </sysFilter>

      </input>

    </container>

Translate
marcinkacz
Level 3
Feb 20, 2019 10:30 AM UTC

Thanks Venu. Unfortunately it doesn't work too. I was able to achieve desired result with container nested inside iconbox's container. So I can hide or display content of child container. But the same code doesn't work with container which is an element of iconbox form. No idea why it works that way.

Translate