Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
alkesh_sharma
Creator III
Creator III

Hide and Show object on Field Selection

Hello,

I need to Hide and show an object based on selection on a particular field.

Example:

Object X should Show only if there is a selection in Y field else it will not show.

5 Replies
ThornOfCrowns
Specialist II
Specialist II

Look at the Conditional option of the object, then at the help file for GetFieldSelections()

mseeck75
Partner - Contributor III
Partner - Contributor III

Hi Alkesh,

you can do that by using variables. If you select an field then you can configure a trigger for the field selected that stores the ID of the selected field into the variable. In the layout condition of the object then you can use this variable to showing that object.

Rgds

matthias

tresesco
MVP
MVP

Conditional expression should be something like:

=GetSelectedCount( YField)

Not applicable

Attaching the example, you need to use the condition in properties->Layout->Show->Conditional

mseeck75
Partner - Contributor III
Partner - Contributor III

Hi Alkesh,

you can do that by using variables. If you select an field then you can configure a trigger for the field selected that stores the ID of the selected field into the variable. In the layout condition of the object then you can use this variable to showing that object.

If you want to show an object depending on a single selected field the you have also the opprtunity to use the substringcount function like this:

=SubStringCount(Concat(YourField,'|'), 'YourSearchstring')

Use this expression in the show condition of the object's layout properties.

Rgds

matthias